#include <bits/stdc++.h>
using namespace std;
const long long N = 1005;
const long long MOD = 1e9 + 7;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  if (n == 1) {
    cout << "a"
         << "\n";
  }
  char aa[] = {"abcdefghi"};
  char bb[] = {"jklmnopqr"};
  for (long long i = 0; i < n; i++) {
    cout << aa[i];
  }
  cout << "\n";
  for (long long i = 0; i < n; i++) {
    cout << bb[i];
  }
  cout << "\n";
}
