#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    char str = 'a';
    cout << str;
  }
  cout << endl;
  char s = 'a';
  for (int i = 0; i < n; i++) {
    cout << s;
    s++;
  }
  return 0;
}
