#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s1, s2;
  cin >> s1 >> s2;
  string temp = "abc";
  int k;
  do {
    string cnt1 = temp + temp;
    string cnt;
    cnt.push_back(temp[0]);
    cnt.push_back(temp[0]);
    cnt.push_back(temp[1]);
    cnt.push_back(temp[1]);
    cnt.push_back(temp[2]);
    cnt.push_back(temp[2]);
    if (cnt1.find(s1) == string::npos && cnt1.find(s2) == string::npos) {
      cout << "YES\n";
      k = n;
      while (k--) cout << temp;
      cout << endl;
      return 0;
    }
    if ((cnt.find(s1) == string::npos && cnt.find(s2) == string::npos ||
         n == 1) &&
        temp.find(s1) == string::npos && temp.find(s2) == string::npos) {
      cout << "YES\n";
      k = n;
      while (k--) cout << temp[0];
      k = n;
      while (k--) cout << temp[1];
      k = n;
      while (k--) cout << temp[2];
      cout << endl;
      return 0;
    }
  } while (next_permutation(temp.begin(), temp.end()));
  cout << "NO\n";
  return 0;
}
