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