def main(): n = int(input()) mod = 1000000007 print(n%mod) if __name__ == '__main__': main()