#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long q, n, x, m, y;
  string t;
  {
    cin >> n;
    cout << n * 22 << " " << n * 21 << endl;
  }
}
