n = int(input())

def solve(mod):
    return (pow(100,n,mod*99) - 1) // 99 % mod

print(solve(10**9+7))
print(solve(101010101010101010101))