#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s1, s2;
  cin >> n >> s1 >> s2;
  string s[6][2] = {{"abc", "abcabc"}, {"acb", "acbacb"}, {"bac", "bacbac"},
                    {"bca", "bcabca"}, {"cab", "cabcab"}, {"cba", "cbacba"}};
  cout << "YES" << endl;
  vector<int> bx;
  for (int i = 0; i < 6; ++i) {
    if (s[i][0].find(s1) == -1 && s[i][0].find(s2) == -1) {
      if (n == 1) {
        cout << s[i][0] << endl;
        return 0;
      }
      if (s[i][1].find(s1) == -1 && s[i][1].find(s2) == -1) {
        for (int j = 0; j < n; ++j) cout << s[i][0];
        cout << endl;
        return 0;
      } else {
        bx.push_back(i);
      }
    }
  }
  for (int i = 0; i < n; ++i) cout << s[bx[0]][0][0];
  for (int i = 0; i < n; ++i) cout << s[bx[0]][0][1];
  for (int i = 0; i < n; ++i) cout << s[bx[0]][0][2];
  cout << endl;
  return 0;
}
