def euc(x, y): if y == 0: return x return euc(y, x%y) H, W = map(int, raw_input().split()) if H / euc(H, W) == 4: print 'TATE' else: print 'YOKO'