n = int(input().strip()) print(n % 1000000007)