// yukicoder: 3054 ほぼ直角二等辺三角形 // 2019.5.14 bal4u #include int main() { int i, X; long long mi, a, a1, a2, c, c1, c2; scanf("%d", &X); mi = 1; for (i = 1; i < X; i++) mi *= 10; a2 = 3, a1 = 20, c2 = 5, c1 = 29; if (X == 1) a = a2, c = c2; else if (X == 2) a = a1, c = c1; else { a = 0; while (a < mi) { a = 6*a1 - a2 + 2; a2 = a1, a1 = a; c = 6*c1 - c2; c2 = c1, c1 = c; } } printf("%lld %lld %lld\n", a, a+1, c); return 0; }