#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n;
  cin >> n;
  if (n % 2) {
    cout << n + 15 << " "
         << "15" << endl;
  } else {
    cout << n + 4 << " "
         << "4" << endl;
  }
}
