#include using namespace std; int n; int main() { cin >> n; if (!n) cout << 9 << " " << 1 << endl; else { long long sum = 8; for (int i = 0; i < n; ++i) sum += 18; cout << sum << " " << 1 << endl; } return 0; }