H, W = map(int, input().split()) d = {4 // 3: "TATE"} print(d.get(H // W, "YOKO"))