import java.util.Scanner; class Question427 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int height = scan.nextInt(); int width = scan.nextInt(); System.out.println(height%3 == 0 ? "YOKO" : "TATE"); } }