#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long y) {
  if (y == 0) return 1;
  if (y % 2 == 0) return power((x * x) % 1000000007, y / 2) % 1000000007;
  return (x * power(x, y - 1)) % 1000000007;
}
int main() {
  int n;
  cin >> n;
  cout << 9 * n << " " << 8 * n;
}
