2849: ABC173A - Payment
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:2
Solved:2
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.
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
- 1≤N≤10000
- 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