#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep(i,n) for(int i=0;i=0;i--) #define DREP(i,n) for(int i=n;i>0;i--) #define Rep(i,m,n) for(int i=m;i vi; typedef vector > vvi; typedef pair pdd; typedef pair pii; const double pi=acos(-1.0); double rad(double t){return t*pi/180.0;} double deg(double d){return d*180.0/pi;} int GCD(int x,int y){if(x> A; num[A]++; } sort(num+1,num+14); if(num[13]==3&&num[12]==2)cout << "FULL HOUSE" << endl; else if(num[13]==3)cout << "THREE CARD" << endl; else if(num[13]==2&&num[12]==2)cout << "TWO PAIR" << endl; else if(num[13]==2)cout << "ONE PAIR" << endl; else cout << "NO HAND" << endl; return 0; }