#include <bits/stdc++.h>
using namespace std;
vector<long long int> v[2 * 100000 + 1];
int main() {
  string s1[] = {"abca", "acba", "bacb", "bcab", "cbac", "cabc"};
  string s2[] = {"abc", "acb", "bac", "bca", "cba", "cab"};
  long long int n;
  cin >> n;
  string c1, c2;
  cin >> c1 >> c2;
  cout << "YES" << endl;
  for (long long int i = 0; i < 6; i++) {
    if (s1[i].find(c1) == -1 && s1[i].find(c2) == -1) {
      for (long long int i1 = 0; i1 < n; i1++)
        for (long long int i2 = 0; i2 < 3; i2++) cout << s2[i][i2];
      return 0;
    }
  }
  for (long long int i = 0; i < 6; i++) {
    if (s2[i].find(c1) == -1 && s2[i].find(c2) == -1) {
      for (long long int i2 = 0; i2 < 3; i2++)
        for (long long int i1 = 0; i1 < n; i1++) cout << s2[i][i2];
      return 0;
    }
  }
}
