#include <bits/stdc++.h>
using namespace std;
string ans;
bool valid(string res, string s, string t) {
  for (long long int i = 0; i < res.size() - 1; i++) {
    if (res[i] == s[0] && res[i + 1] == s[1]) {
      return false;
    } else if (res[i] == t[0] && res[i + 1] == t[1]) {
      return false;
    }
  }
  ans = res;
  return true;
}
void solve() {
  long long int n;
  cin >> n;
  string s, t;
  cin >> s >> t;
  string res[12];
  for (long long int i = 0; i < n; i++) {
    res[0] += "abc";
    res[1] += "acb";
    res[2] += "bac";
    res[3] += "bca";
    res[4] += "cab";
    res[5] += "cba";
  }
  for (long long int i = 0; i < n; i++) res[6].push_back('a');
  for (long long int i = 0; i < n; i++) res[6].push_back('b');
  for (long long int i = 0; i < n; i++) res[6].push_back('c');
  for (long long int i = 0; i < n; i++) res[7].push_back('a');
  for (long long int i = 0; i < n; i++) res[7].push_back('c');
  for (long long int i = 0; i < n; i++) res[7].push_back('b');
  for (long long int i = 0; i < n; i++) res[8].push_back('b');
  for (long long int i = 0; i < n; i++) res[8].push_back('a');
  for (long long int i = 0; i < n; i++) res[8].push_back('c');
  for (long long int i = 0; i < n; i++) res[9].push_back('b');
  for (long long int i = 0; i < n; i++) res[9].push_back('c');
  for (long long int i = 0; i < n; i++) res[9].push_back('a');
  for (long long int i = 0; i < n; i++) res[10].push_back('c');
  for (long long int i = 0; i < n; i++) res[10].push_back('a');
  for (long long int i = 0; i < n; i++) res[10].push_back('b');
  for (long long int i = 0; i < n; i++) res[11].push_back('c');
  for (long long int i = 0; i < n; i++) res[11].push_back('b');
  for (long long int i = 0; i < n; i++) res[11].push_back('a');
  for (long long int i = 0; i < 12; i++) {
    if (valid(res[i], s, t)) {
      cout << "YES\n";
      cout << ans;
      return;
    }
  }
  cout << "NO";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  solve();
  return 0;
}
