#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e17 + 9;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  if (n == 1) {
    cout << "a" << endl;
    return 0;
  }
  string s = "";
  for (int i = 0; i < (n); ++i) s += 'a';
  cout << s << endl;
  s[(int)(s).size() - 1] = 'b';
  cout << s << endl;
  return 0;
}
