# coding: utf-8 def main(): h, w = [int(i) for i in input().split()] result = judge(h, w) print(result) def judge(h, w): """ >>> judge(400, 300) 'TATE' >>> judge(540, 720) 'YOKO' """ if w / (h / 4) == 3: result = "TATE" else: result = "YOKO" return result if __name__=='__main__': import doctest doctest.testmod() main()