def ron():
    a=[input('a number between 2800~5000 and color ') for i in range(0,2) ]
    k=int(a[0])
    if k>=2800:
        if k<=5000:
            pass
        else:
          print('Wrong input.Please input again.')
          ron()
         
    else:
        print('Wrong input.Please input again.')
        ron()
        
   

    if a[1]=='pink':
        s='red'
    elif a[1]=='red':
        s='pink'
    else:
        print('Wrong input.Please input again.')
        ron()
    if k>=3200:
        print(a[1])
    else:
        print(s)


ron()