def isqrt(n): x = n y = (x + 1) // 2 while y < x: x = y y = (x + n // x) // 2 return x x = int(input()) - 1 a = [0, 3] while True: b = a[-1] + 1 c = isqrt(a[-1] ** 2 + b ** 2) if 10 ** x <= c: print(a[-1], b, c) break a += [6 * a[-1] - a[-2] + 2]