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