// NOTE: it is recommended to use this even if you don't understand the following code.

#include <fstream>
#include <iostream>
#include <string>
#include <vector>

using namespace std;

int main() {
    // uncomment the two following lines if you want to read/write from files
    // ifstream cin("input.txt");
    // ofstream cout("output.txt");

    int N, M, R, G, B;
    cin >> N >> M >> R >> G >> B;
    
    vector<string> grid(N, string(M, 'R'));
    bool ans = true;
    
    
    // INSERT YOUR CODE HERE
    
    if (ans) {
        cout << "YES" << endl;
        for (int i = 0; i < N; ++i)
            cout << grid[i] << endl;
    } else {
        cout << "NO" << endl;
    }

    return 0;
}
