#include <bits/stdc++.h>
using namespace std;
int main()
{
    int a;
    int sum = 11;
    string s;
    scanf("%d\n", &a);
    while (n)
    {
        cin >> s;
        if (a >= 3200)
        {
            cout << s << " ";
        }
        if (a < 3200 && s == "pink")
        {
            printf("red \n");
        }
        if (a < 3200 && s == "red")
        {
            printf("pink \n");
        }
        n--;
    }
}