#include <bits/stdc++.h>
using namespace std;
string rev(string s) {
  long long int len = s.length();
  string ans = s;
  for (long long int i = 0; i < len; i++) ans[len - 1 - i] = s[i];
  return ans;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  t = 1;
  while (t--) {
    long long int n;
    cin >> n;
    string a, b;
    cin >> a >> b;
    if (a != "ab" && a != "bc" && a != "ca" && b != "ab" && b != "bc" &&
        b != "ca") {
      cout << "YES\n";
      for (long long int i = 0; i < n; i++) cout << "abc";
    } else if (a != "ac" && a != "cb" && a != "ba" && b != "ac" && b != "cb" &&
               b != "ba") {
      cout << "YES\n";
      for (long long int i = 0; i < n; i++) cout << "acb";
    } else if (a == rev(b)) {
      cout << "YES\n";
      if (a == "ab" || b == "ab") {
        for (long long int i = 0; i < n; i++) cout << "a";
        for (long long int i = 0; i < n; i++) cout << "c";
        for (long long int i = 0; i < n; i++) cout << "b";
      } else if (a == "ac" || b == "ac") {
        for (long long int i = 0; i < n; i++) cout << "a";
        for (long long int i = 0; i < n; i++) cout << "b";
        for (long long int i = 0; i < n; i++) cout << "c";
      } else {
        for (long long int i = 0; i < n; i++) cout << "b";
        for (long long int i = 0; i < n; i++) cout << "a";
        for (long long int i = 0; i < n; i++) cout << "c";
      }
    } else {
      if (b < a) swap(a, b);
      cout << "YES\n";
      if (a == "ab") {
        for (long long int i = 0; i < n; i++) cout << "b";
        for (long long int i = 0; i < n; i++) cout << "c";
        for (long long int i = 0; i < n; i++) cout << "a";
      } else if (a == "ac") {
        for (long long int i = 0; i < n; i++) cout << "c";
        for (long long int i = 0; i < n; i++) cout << "b";
        for (long long int i = 0; i < n; i++) cout << "a";
      } else if (a == "ba") {
        for (long long int i = 0; i < n; i++) cout << "a";
        for (long long int i = 0; i < n; i++) cout << "c";
        for (long long int i = 0; i < n; i++) cout << "b";
      } else if (a == "ca") {
        for (long long int i = 0; i < n; i++) cout << "a";
        for (long long int i = 0; i < n; i++) cout << "b";
        for (long long int i = 0; i < n; i++) cout << "c";
      }
    }
  }
  return 0;
}
