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