Lucky Year

题意翻译

## 题目描述 除了一年中的许多假期,Berland的居民还有一整个幸运年。如果年份中有不超过1个的非零数字,这一年就被认为是幸运的。所以100,40000,5年是幸运的,12,3001,12345年不是。 你被告知了Berland当前的年份,你的任务就是去找到Berland还要等多久才能迎来下一个幸运年。 ### 输入格式: 第一行包含一个整数 $n$ ($1\leq n\leq 10^9$ )— 当前Berland的年份。 ### 输出格式: 输出一个从当前年份到下一个幸运年所经过的年数。 ### 说明 第一个样例中,下一个幸运年是5。在第二个中 — 300。在第三个中 — 5000。 by @Khassar

题目描述

Apart from having lots of holidays throughout the year, residents of Berland also have whole lucky years. Year is considered lucky if it has no more than 1 non-zero digit in its number. So years 100, 40000, 5 are lucky and 12, 3001 and 12345 are not. You are given current year in Berland. Your task is to find how long will residents of Berland wait till the next lucky year.

输入输出格式

输入格式


The first line contains integer number $ n $ ( $ 1<=n<=10^{9} $ ) — current year in Berland.

输出格式


Output amount of years from the current year to the next lucky one.

输入输出样例

输入样例 #1

4

输出样例 #1

1

输入样例 #2

201

输出样例 #2

99

输入样例 #3

4000

输出样例 #3

1000

说明

In the first example next lucky year is 5. In the second one — 300. In the third — 5000.