#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, b;
  cin >> n;
  for (int a = 4; a <= 100000000; a += 2) {
    int k = n + a;
    for (int i = 2; i < k; i++) {
      if (k % i == 0) {
        cout << k << " " << a;
        return 0;
      }
    }
  }
}
