A = list(map(int, input().split())) COUNTS = [A.count(N + 1) for N in range(13)] if 3 in COUNTS: if 2 in COUNTS: print("FULL HOUSE") exit(0) else: print("THREE CARD") exit(0) elif 2 in COUNTS: if counts.count(2) >= 2: print("TWO PAIR") exit(0) else: print("ONE PAIR") exit(0) else: print("NO HAND") exit(0)