import java.util.*; public class Main_01{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); double tate = sc.nextInt(); double yoko = sc.nextInt(); if(tate/yoko == 0.75){ System.out.println("YOKO"); }else if(yoko/tate == 0.75){ System.out.println("TATE"); } } }