import sys input = sys.stdin.readline N = int(input()) mod = 10 ** 9 + 7 print(N % mod)