import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new BufferedReader(new InputStreamReader(System.in)));
BufferedWriter bw = new BufferedWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
int firstInput = br.readLine().length();
int secondInput = br.readLine().length();
if (firstInput < secondInput){
bw.write("no");
} else {
bw.write("go");
}
bw.flush();
bw.close();
}
}