#include <bits/stdc++.h>
using namespace std;
string ss[] = {"abc", "acb", "bac", "bca", "cab", "cba"};
vector<string> pos;
int main() {
  int n;
  cin >> n;
  string s, t;
  cin >> s >> t;
  for (int i = 0; i < 6; i++) {
    string x, y;
    x = y = "";
    for (int j = 0; j < n; j++) {
      for (int k = 0; k < 3; k++) {
        x += ss[i][k];
      }
    }
    pos.push_back(x);
    x = "";
    for (int k = 0; k < 3; k++) {
      for (int j = 0; j < n; j++) x += ss[i][k];
    }
    pos.push_back(x);
  }
  for (auto it : pos) {
    bool ans = true;
    for (int i = 0; i < 3 * n - 1; i++) {
      string x = it.substr(i, 2);
      if (x == s || x == t) {
        ans = false;
        break;
      }
    }
    if (ans) {
      cout << "YES" << endl;
      cout << it << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
