101920: [AtCoder]ABC192 A - Star

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

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.

Input

题意翻译

高桥君在玩一个游戏。在游戏里,每收集 $100$ 个金币可以获得一个奖品。 高桥君已经收集了 $N$ 个金币,他也获得了所有能够得到的奖品。他还要收集多少个金币才能获得下一个奖品?

加入题单

上一题 下一题 算法标签: