n = int(input()) if n > 10**18: raise ValueError