line = 1000000007 print(int(input()) % line)