// Arup Guha
// 10/13/2012
// Solution to 2012 NCPC Problem A: Aaah!

import java.util.*;

public class aaah {
	
	public static void main(String[] args) {
		
		Scanner stdin = new Scanner(System.in);
		
		String s1 = stdin.next();
		String s2 = stdin.next();
		
		// We just want the first string to be at least as long as the second.
		if (s1.length() >= s2.length())
			System.out.println("go");
		else
			System.out.println("no");
	}
}