package no227; import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] count = new int[14]; for(int i=0;i<5;i++) { count[sc.nextInt()]++; } Arrays.sort(count); if (count[13] == 3 && count[12] == 2) { System.out.println("FULL HOUSE"); }else if(count[13] == 3) { System.out.println("THREE CARD"); }else if(count[13] == 2 && count[12] == 2) { System.out.println("TWO PAIR"); }else if(count[13] == 2) { System.out.println("ONE PAIR"); }else{ System.out.println("NO HAND"); } } }