#include <bits/stdc++.h>
using namespace std;
const int N = 123456;
void solve() {
  long long n;
  cin >> n;
  if (n % 2 == 0) {
    cout << (10 + n) << " 10";
  } else {
    cout << (9 + n) << " 9";
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  t = 1;
  while (t--) solve();
  return 0;
}
