#include <bits/stdc++.h>
using namespace std;
long long int P = 1000000007;
bool definitelyGreaterThan(long double a, long double b, long double epsilon) {
  return (a - b) > ((fabs(a) < fabs(b) ? fabs(b) : fabs(a)) * epsilon);
}
int main() {
  long long int n;
  string s = "", ss = "";
  cin >> n;
  long long int i, j, k, l;
  for (i = 0; i < n; i++) {
    s += 'a';
  }
  for (i = 0; i < n; i++) {
    ss += 'b';
  }
  cout << s << "\n" << ss << "\n";
  return 0;
}
