#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long int n = 0;
  cin >> n;
  if (n % 2 == 0)
    cout << n + 4 << " " << 4;
  else if (n % 3 == 0)
    cout << n + 6 << " " << 6;
  else if (n % 3 == 1)
    cout << n + 8 << " " << 8;
  else
    cout << n + 10 << " " << 10;
  return 0;
}
