#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  if (n == 1) {
    cout << 9 << " " << 8;
    return 0;
  }
  cout << 3 * n << " " << 2 * n;
}
