print(pow(10**18, 10**18, 10**9 + 7))