#include <bits/stdc++.h> #include <iostream> using namespace std; int main () { string sp; while (cin >> s) { if (s == "END") break; if (s == "FAIL") cout << "LEFT" << endl; if (s == "W" or s == "E" or s == "N" or s == "S") cout << "GO" << endl; } cout << "###" << endl << "#.#" << endl; << "#.#" << endl; return 0; }