100 atcoder#ABC192A. [ABC192A] Star

[ABC192A] Star

Score : 100100 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 100100, you get a prize.

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

Constraints

  • 0X1050 \leq X \leq 10^5

Input

Input is given from Standard Input in the following format:

XX

Output

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

140
60

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

1000
100

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