H, W = gets.split.map(&:to_i) puts H > W ? 'TATE' : 'YOKO'