#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int inf = 1e9 + 8;
const int maxn = 1e5 + 10;
signed main() {
  int n;
  cin >> n;
  if (n == 1) {
    cout << 9 << ' ' << 8;
    return 0;
  }
  cout << n * 3 << ' ' << n * 2;
}
