tate, yoko = gets.split.map(&:to_i) puts tate > yoko && tate % 4 == 0 && yoko % 3 == 0 ? "TATE" : "YOKO"