#include using namespace std; int main() { int N; cin >> N; if(N == 0) { cout << 9 << " " << 1 << endl; return 0; } long long tmp = 2LL+9*N; cout << tmp*tmp << " " << 1 << endl; }