#include<stdio.h>
#include<string.h>
int main()
{
      char str[50];
      scanf("%s",&str);
      if(strcmp(str,"red")==0)
      {
          printf("STOP");
      }
      else if(strcmp(str,"yellow")==0)
      {
          printf("READY");
      }
      else if(strcmp(str,"green")==0)
      {
          printf("GO");
      }
      else
      {
          printf("INVALID INPUT")
      }
      return 0;
}