Problem2092--ABC173A - Payment

2092: ABC173A - Payment

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Time Limit: 2 sec / Memory Limit: 1024 MB

Problem Statement
We will buy a product for N yen (the currency of Japan) at a shop.
If we use only 1000 yen bills to pay the price, how much change will we receive?
Assume we use the minimum number of bills required.

Constraints

  • 1N10000
  • N is an integer.

Input

Input is given from Standard Input in the following format:

N 

Output

Print the amount of change as an integer.

Sample Input Copy

1900

Sample Output Copy

100

Source/Category