#include <bits/stdc++.h>
using namespace std;
string alpha = "abcdefghijklmnopqrstuvwxyz";
string Alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string glas = "aeiou";
long long int Mod = 1000 * 1000 * 1000 + 7;
long long int INF = 1000000000000000000;
int main() {
  iostream::sync_with_stdio(false);
  cin.tie(0);
  long long int n;
  cin >> n;
  n *= 3;
  string s1, s2;
  cin >> s1 >> s2;
  string s = "abc";
  if (s2[0] == s2[1]) swap(s1, s2);
  cout << "YES\n";
  string ans;
  if ((s1[0] == s1[1]) && (s2[0] == s2[1])) {
    for (long long int i = 0; i < n / 3; i++) cout << "abc";
  } else if ((s1[0] == s1[1])) {
    swap(s2[0], s2[1]);
    ans = s2;
    for (long long int i = 0; i < 3; i++) {
      if (s[i] != s2[0] && s[i] != s2[1]) ans += s[i];
    }
    for (long long int i = 0; i < n / 3; i++) cout << ans;
  } else {
    swap(s2[0], s2[1]);
    if (s2 == s1) {
      ans += s2[0];
      for (long long int i = 0; i < 3; i++) {
        if (s[i] != s2[0] && s[i] != s2[1]) ans += s[i];
      }
      ans += s2[1];
      for (long long int i = 0; i < n / 3; i++) {
        cout << ans;
        reverse(ans.begin(), ans.end());
      }
    } else {
      string curr;
      for (long long int i = 0; i < n / 3; i++) ans += s2[0];
      for (long long int i = 0; i < n / 3; i++) ans += s2[1];
      long long int get = 0;
      for (long long int i = 0; i < 3; i++) {
        if (s[i] != s2[0] && s[i] != s2[1]) {
          for (long long int j = 0; j < n / 3; j++) curr += s[i];
        }
      }
      if (s2[0] == s1[1] && s2[1] == s1[0]) {
        cout << ans << curr;
        return 0;
      }
      for (long long int i = 0; i < 2; i++) {
        if (s2[i] == s1[0] || s2[i] == s1[1]) {
          if (i == 0) {
            cout << ans << curr;
          } else
            cout << curr << ans;
        }
      }
    }
  }
}
