X = int(input()) x, y = 1, 1 while True: a = (x - 1) // 2 c = y if a > 0 and len(str(c)) == X: print(a, a + 1, c) break # Generate next solution new_x = 3 * x + 4 * y new_y = 2 * x + 3 * y x, y = new_x, new_y