N = int(input()) md = 1000000007 print(N%md)