x = int(input()) a, c = 3, 5 while len(str(c)) < x: a, c = 3*a + 2*c + 1, 4*a + 3*c + 2 print(a, a+1, c)