#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  scanf("%d", &n);
  int x, y;
  if (n % 2 == 2) {
    x = 4 + n;
    y = 4;
    printf("%d %d\n", x, y);
  } else {
    x = 3 * n;
    y = 2 * n;
    if (n == 1) {
      y = 8;
      x = 9;
    }
    printf("%d %d\n", x, y);
  }
  return 0;
}
