#include <bits/stdc++.h>
using namespace std;
void file() {}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  file();
  int n;
  cin >> n;
  string s = string(n, 'a');
  string t = string(n, 'a');
  t[t.size() - 1] = 'b';
  cout << s << "\n";
  cout << t << "\n";
}
