package main import "fmt" func main() { var c int cards := make(map[int]int) for i := 0; i < 5; i++ { _, _ = fmt.Scan(&c) cards[c]++ } c2, c3 := 0, 0 for _, n := range cards { if n == 3 { c3++ } else if n == 2 { c2++ } } ans := "NO HAND" if c3 == 1 && c2 == 1 { ans = "FULL HOUSE" } else if c3 == 1 { ans = "THREE CARD" } else if c2 == 2 { ans = "TWO PAIR" } else if c2 == 1 { ans = "ONE PAIR" } fmt.Println(ans) }