h, w = gets.split.map(&:to_i) puts (h < w) ? 'YOKO' : 'TATE'