#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int sig = 26; int main() { fast_io(); int n; cin >> n; if (n == 0) { cout << "9 1\n"; } else if (n == 1) { cout << "26 1\n"; } else { cout << 44 + 18 * (n - 2) << " 1\n"; } }