SOMPO HD プログラミングコンテスト2021(AtCoder Beginner Contest 192)
A
Star
AtCoder
⌀ 0
原题
←B →
翻译中…

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.

翻译中…

样例

Input #1
140
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.
Input #2
1000
Output #2
100
He gets the next prize when he has collected $1100$ coins in total.
题目信息
题号
abc192_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。