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