Problem: 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.

Input

The first line contains integer number n (1 ≤ n ≤ 109) — current year in Berland.

Output

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

Examples

Input

4


Output

1


Input

201


Output

99


Input

4000


Output

1000

Note

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

Solution (in PYTHON3):

Solution:
import math as mt 
import sys,string,bisect
input=sys.stdin.readline
import random
from collections import deque,defaultdict
L=lambda : list(map(int,input().split()))
Ls=lambda : list(input().split())
M=lambda : map(int,input().split())
I=lambda :int(input())
def check(n):
    n=list(set(list(str(n))))
    if(len(n)==1):
        return True
    n.sort()
    if(n[0]=='0'):
        if(len(n)<=2):
            return True
        else:
            return False
    else:
        return False

n=I()
n=str(n)
s=len(n)
f=int(n[0])
s=len(n)-1
f+=1
print(int(str(f)+s*'0')-int(n))