#include <bits/stdc++.h>
using namespace std;
const long long MAXN = 1e5 + 10;
const long long INF = 8e18;
const long long MOD = 1e9 + 9;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  string a, b;
  cin >> a >> b;
  if (a > b) {
    swap(a, b);
  }
  cout << "Yes" << '\n';
  if (a == "aa" && b == "ab") {
    for (int i = 0; i < n; i++) {
      cout << "ac";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "aa" && b == "ac") {
    for (int i = 0; i < n; i++) {
      cout << "ab";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "aa" && b == "bb") {
    for (int i = 0; i < n; i++) {
      cout << "ab";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "aa" && b == "bc") {
    for (int i = 0; i < n; i++) {
      cout << "ac";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "aa" && b == "cb") {
    for (int i = 0; i < n; i++) {
      cout << "ab";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "aa" && b == "cc") {
    for (int i = 0; i < n; i++) {
      cout << "ac";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "aa" && b == "ba") {
    for (int i = 0; i < n; i++) {
      cout << "ac";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "aa" && b == "ca") {
    for (int i = 0; i < n; i++) {
      cout << "ab";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "ab" && b == "ac") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    return 0;
  }
  if (a == "ab" && b == "ba") {
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    return 0;
  }
  if (a == "ab" && b == "bb") {
    for (int i = 0; i < n; i++) {
      cout << "cb";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    return 0;
  }
  if (a == "ab" && b == "bc") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    return 0;
  }
  if (a == "ab" && b == "ca") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    return 0;
  }
  if (a == "ab" && b == "cb") {
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "ab" && b == "cc") {
    for (int i = 0; i < n; i++) {
      cout << "ac";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "ac" && b == "ba") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "ac" && b == "bb") {
    for (int i = 0; i < n; i++) {
      cout << "cb";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    return 0;
  }
  if (a == "ac" && b == "bc") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "ac" && b == "ca") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    return 0;
  }
  if (a == "ac" && b == "cb") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "ac" && b == "cc") {
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "bc";
    }
    return 0;
  }
  if (a == "ba" && b == "bb") {
    for (int i = 0; i < n; i++) {
      cout << "bc";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    return 0;
  }
  if (a == "ba" && b == "bc") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "ba" && b == "ca") {
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "ba" && b == "cb") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "ba" && b == "cc") {
    for (int i = 0; i < n; i++) {
      cout << "ca";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "bb" && b == "bc") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "ab";
    }
    return 0;
  }
  if (a == "bb" && b == "ca") {
    for (int i = 0; i < n; i++) {
      cout << "cb";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    return 0;
  }
  if (a == "bb" && b == "cb") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "ab";
    }
    return 0;
  }
  if (a == "bb" && b == "cc") {
    for (int i = 0; i < n; i++) {
      cout << "cb";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    return 0;
  }
  if (a == "bc" && b == "ca") {
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "bc" && b == "cb") {
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "bc" && b == "cc") {
    for (int i = 0; i < n; i++) {
      cout << "ca";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "ca" && b == "cb") {
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "ca" && b == "cc") {
    for (int i = 0; i < n; i++) {
      cout << "cb";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    return 0;
  }
  if (a == "cb" && b == "cc") {
    for (int i = 0; i < n; i++) {
      cout << "ca";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    return 0;
  }
  if (a == "aa" && b == "aa") {
    for (int i = 0; i < n; i++) {
      cout << "ba";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "ab" && b == "ab") {
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "ac" && b == "ac") {
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "ba" && b == "ba") {
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "bb" && b == "bb") {
    for (int i = 0; i < n; i++) {
      cout << "ab";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "bc" && b == "bc") {
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "ca" && b == "ca") {
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "cb" && b == "cb") {
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "a";
    }
    for (int i = 0; i < n; i++) {
      cout << "c";
    }
    return 0;
  }
  if (a == "cc" && b == "cc") {
    for (int i = 0; i < n; i++) {
      cout << "b";
    }
    for (int i = 0; i < n; i++) {
      cout << "ac";
    }
    return 0;
  }
}
