n = int(input()) mod1 = 10**9 + 7 mod2 = 101010101010101010101 def compute(n, M): modulus = 99 * M power = pow(100, n, modulus) numerator = (power - 1) % modulus return (numerator // 99) % M print(compute(n, mod1)) print(compute(n, mod2))