H, W = map(int, raw_input().split()) if H % 4 == 0 and W % 3 == 0: print 'TATE' else: print 'YOKO'