A - Star 解説 /

実行時間制限: 2 sec / メモリ制限: 1024 MB

配点 : 100

問題文

高橋君はゲームで遊んでいます。

このゲームでは、今までに集めたコインの枚数が 100 の倍数になるごとにご褒美がもらえます。

高橋君が今までに集めたコインの枚数は X 枚です。次にご褒美をもらうためには、あと何枚のコインを集めればよいでしょうか? (X100 の倍数の場合、コインを累計で X 枚集めたことに対するご褒美はすでにもらったとします。)

制約

  • 0 \leq X \leq 10^5

入力

入力は以下の形式で標準入力から与えられる。

X

出力

次にご褒美をもらうために、追加で集める必要のあるコインの枚数を出力せよ。


入力例 1

140

出力例 1

60

次にご褒美がもらえるのは、コインを累計で 200 枚集めたときなので、あと 200-140=60 枚のコインを集める必要があります。


入力例 2

1000

出力例 2

100

次にご褒美がもらえるのは、コインを累計で 1100 枚集めたときです。

Score : 100 points

Problem Statement

Takahashi is playing a game.

In this game, each time the number of coins you have collected so far becomes a multiple of 100, you get a prize.

Takahashi has collected X coins so far. How many more coins does he need to collect before he gets the next prize? (If X is a multiple of 100, we assume that he has already got the prize for collecting X coins in total.)

Constraints

  • 0 \leq X \leq 10^5

Input

Input is given from Standard Input in the following format:

X

Output

Print the number of additional coins that he needs to collect before he gets the next prize.


Sample Input 1

140

Sample Output 1

60

He gets the next prize when he has collected 200 coins in total. To get it, he needs to collect 60 more coins.


Sample Input 2

1000

Sample Output 2

100

He gets the next prize when he has collected 1100 coins in total.