#include "bits/stdc++.h" using namespace std; using ll = long long; void Main() { ll N; cin >> N; if (N == 0) { cout << "9 1" << endl; } else if (N == 1) { cout << "26 1" << endl; } else { int ans = 37LL + 11LL * (N - 2LL); cout << ans << " 1" << endl; } } int main() { std::cout << std::fixed << std::setprecision(15); Main(); return 0; }