import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N = int(read()) def geom_seq_sum(r,n,MOD): """ return \sum_{i=0}^{n-1} r^i mod MOD """ if r == 1: return n%MOD r1 = r-1 return ((pow(r,n,r1*MOD)-1)//r1)% MOD for x in [10 ** 9 + 7, 101010101010101010101]: print(geom_seq_sum(100,N,x))