# -*- coding: utf-8 -*- h,w = map(int,input().split()) u = abs(h - w) if int(w / u) == 4: print("YOKO") else: print("TATE")