#include <cstdio>
#include <cstring>
#include<bits/stdc++.h>
#include<unordered_set>
using namespace std;

set<pair<int, int> > mys;

struct Dif
{
    int x, y;
}dif[] = {1, 0, 0, 1, -1, 0, 0, -1};

char* str[] = {"RIGHT", "DOWN", "LEFT", "UP"};
char buf[32];

bool check(int x, int y, int dir)
{
    if(x < 1 || y < 1)
        return false;
    else
    {
        printf("LOOK %s\n", str[dir]);
        fflush(stdout);

        scanf(" %s", buf);
        if(buf[0]=='U')mys.insert({x, y});
        return !strcmp(buf, "SAFE");
    }
}

int main()
{
    int x = 1, y = 1;

    int dir = 0;

    while(true)
    {
        int dd = (dir + 1) % 4;

        while(!check(x + dif[dd].x, y + dif[dd].y, dd))
            dd = (dd + 3) % 4;

        x += dif[dd].x;
        y += dif[dd].y;
        dir = dd;

        printf("GO %s\n", str[dir]);

        fflush(stdout);

        scanf(" %s", buf);
        if(!strcmp(buf, "YES"))
            break;
    }
}