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