i = int(input()) o = n % 1000000007 print(o)