#include using namespace std; int main() { int n; cin >> n; if(n == 0) cout << 9 << " " << 1 << endl; else cout << 9 * (n * 2) + 8 << " " << 1 << endl; }