#include <bits/stdc++.h>
using namespace std;
const long long mod = 998244353;
void solve() {
  int n;
  cin >> n;
  cout << 25 * n << " " << 24 * n << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  while (t--) {
    solve();
  }
}
