#include <bits/stdc++.h>
using namespace std;
long long mode = pow(10, 9) + 7;
bool cmp(pair<long long, long long> x, pair<long long, long long> y) {
  return x.second < y.second;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  cout << 9 * n << " " << 8 * n << "\n";
  return 0;
}
