import java.util.*; public class test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); if(H*4 == W*3){ System.out.println("YOKO"); } else if(H*3 == W*4){ System.out.println("TATE"); } } }