#include using namespace std; using lint = unsigned long long; template using V = vector; template using VV = V< V >; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int x; cin >> x; if (x == 1) return cout << "3 4 5" << '\n', 0; if (x == 2) return cout << "20 21 29" << '\n', 0; V a{3, 20}, b{4, 21}, c{5, 29}; for (int i = 0; ; ++i) { a.push_back(6 * a[i + 1] - a[i] + 2); b.push_back(a.back() + 1); c.push_back(6 * c[i + 1] - c[i]); if (to_string(c.back()).size() == x) { cout << a.back() << ' ' << b.back() << ' ' << c.back() << '\n'; return 0; } } }