#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  while (t--) {
    int n;
    cin >> n;
    if (n == 1)
      cout << 16 << " " << 15 << endl;
    else
      cout << 3 * n << " " << 2 * n << endl;
  }
}
