X = int(input()) tup = [(0, 0), (3, 5)] while len(str(tup[-1][1])) < X: A = 4 * tup[-1][1] + tup[-2][0] tup.append((A, round(pow(A * A + (A + 1) * (A + 1), 1/2)))) else: print(tup[-1][0], tup[-1][0] + 1, tup[-1][1])