#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  string a, b;
  cin >> a >> b;
  string ba = "abc";
  do {
    string s1, s2;
    for (int i = 0; i < n; ++i) s1 += ba;
    if (s1.find(a) == string::npos && s1.find(b) == string::npos) {
      cout << "YES" << endl;
      cout << s1 << endl;
      return 0;
    }
    s2 = string(n, ba[0]) + string(n, ba[1]) + string(n, ba[2]);
    if (s2.find(a) == string::npos && s2.find(b) == string::npos) {
      cout << "YES" << endl;
      cout << s2 << endl;
      return 0;
    }
  } while (next_permutation(ba.begin(), ba.end()));
  return 0;
}
