n = int(input()) MOD = 1000000007 print(n%MOD)