#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vi = vector<int>;
using pi = pair<int, int>;
using pl = pair<ll, ll>;
using pli = pair<ll, int>;
using pil = pair<int, ll>;
using ppii = pair<pi, int>;
using vvi = vector<vi>;
using vpi = vector<pi>;
using vpl = vector<pl>;
using vpil = vector<pil>;
using vpli = vector<pli>;
using vppii = vector<ppii>;
using si = set<int>;
using sl = set<ll>;
using spi = set<pi>;
using spli = set<pli>;
int main() {
  int n;
  cin >> n;
  cout << 9 * n << " " << 8 * n;
}
