2849: ABC173A - Payment
محدودیت حجمی:128 MB
محدودیت زمانی:1.000 S
Judge Style:Text Compare
Creator:
ارسال:2
مسائل حل کرده:2
توضیحات
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 is given from Standard Input in the following format:
N
خروجی
Print the amount of change as an integer.
نمونه وردی Copy
1900
نمونه خروجی Copy
100