import sys input = sys.stdin.readline N = input()[: -1] print(N.zfill(3))