#include using namespace std; int main() { int n; cin >> n; cout << (n ? 9ll * (2 * n + 1) - 1 : 9) << " " << 1 << '\n'; }