import sys input = sys.stdin.readline N=input().strip() print(N.zfill(3))