#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d;
  cin >> a;
  string str1, str2;
  cin >> str1 >> str2;
  vector<string> val;
  val.push_back("abc");
  val.push_back("acb");
  val.push_back("bca");
  val.push_back("bac");
  val.push_back("cab");
  val.push_back("cba");
  string stri1;
  int i;
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[0];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[0][0];
  for (i = 0; i < a; i++) stri1 += val[0][1];
  for (i = 0; i < a; i++) stri1 += val[0][2];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[1];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[1][0];
  for (i = 0; i < a; i++) stri1 += val[1][1];
  for (i = 0; i < a; i++) stri1 += val[1][2];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[2];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[2][0];
  for (i = 0; i < a; i++) stri1 += val[2][1];
  for (i = 0; i < a; i++) stri1 += val[2][2];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[3];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[3][0];
  for (i = 0; i < a; i++) stri1 += val[3][1];
  for (i = 0; i < a; i++) stri1 += val[3][2];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[4];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[4][0];
  for (i = 0; i < a; i++) stri1 += val[4][1];
  for (i = 0; i < a; i++) stri1 += val[4][2];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[5];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  stri1 = "";
  for (i = 0; i < a; i++) stri1 += val[5][0];
  for (i = 0; i < a; i++) stri1 += val[5][1];
  for (i = 0; i < a; i++) stri1 += val[5][2];
  for (i = 0; i < stri1.size() - 1; i++)
    if (stri1.substr(i, 2) == str2 || stri1.substr(i, 2) == str1) break;
  i++;
  if (i == stri1.size()) {
    cout << "YES" << endl;
    cout << stri1 << endl;
    return 0;
  }
  cout << "NO" << endl;
}
