#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1.0);
const double eps = 1e-6;
const int INF = 0x3f3f3f3f;
const int MAXN = 233;
int main() {
  int n;
  while (scanf("%d", &n) != EOF) {
    int a, b;
    if (n % 2) {
      b = 9;
      a = n + 9;
    } else {
      b = 4;
      a = n + 4;
    }
    printf("%d %d\n", a, b);
  }
  return 0;
}
