print(n % (10 ** 9 + 7))