import math s = "3 20 119 4059 23660 137903 4684659 27304196 159140519 5406093003 31509019100 183648021599 1070379110496 36361380737780 211929657785303 1235216565974040 41961001862379596 244566641436218639" s = list(map(int, s.split())) X = int(input()) a = s[X - 1] b = a + 1 tmp = a * a + b * b t = int(math.sqrt(tmp)) if t * t == tmp: print(a, b, t) exit(0) for c in range(t - 100, t + 100): if c * c == tmp: break assert(c * c == tmp) print(a, b, c)