#include <iostream>
#include <cstdlib>
using namespace std;

//Flag of Ireland.

int main()
{
        int nrows {20};   //number of rows of pixels
        int ncols {30};   //number of columns of pixels

        cout << "P3\n"
                << ncols << " " << nrows << "\n"
                << 255 << "\n";

        for (int row {0}; row < nrows; ++row) {
                for (int col {0}; col < ncols; ++col) {
                        if (col < 10) {
                                cout << "14 156 98\n";    //left third is green
                        } else if (col < 20) {
                                cout << "255 255 255\n"; //middle third is white
                        } else {
                                cout << "255 137 60\n";   //right third is orange
                        }
                }
        }

        return EXIT_SUCCESS;
}