import sys input = lambda: sys.stdin.readline().rstrip() mod = 10**9 + 7 # ----------------------- # n = int(input()) print(n % mod)