#include using namespace std; using PP = pair; const int INF = 1e9; template T Next() { T buf; cin >> buf; return buf; } int digits(long n) { int ret = 0; while (n > 0) { n /= 10; ++ret; } return ret; } long mysqrt(__int128 n) { long lo = 0; long hi = 2e18; while (hi - lo > 1) { long mid = (lo + hi) / 2; if ((__int128)mid * mid > n) { hi = mid; } else { lo = mid; } } return lo; } int main() { int n; cin >> n; long p = 1; long c = 5; while (digits(c) < n) { long t = c; c = c * 6 - p; p = t; } long a = mysqrt((__int128)c * c / 2); long b = a + 1; cout << a << ' ' << b << ' ' << c << endl; return 0; }