H, W = [int(i) for i in input().strip().split(' ')] print(['TATE', 'YOKO'][W / (H / 3) == 4])