Go: package main

import (
	"bufio"
	"os"
	"strings"
	"strconv"
	"sort"
	"fmt"
)

var scanner = bufio.NewScanner(os.Stdin)

func main() {
	for scanner.Scan() {
		input := strings.Split(scanner.Text(), ",")
		cards := make([]int, 5)
		for i :=range input {
			cards[i], _ = strconv.Atoi(input[i])
		}
		sort.Sort(sort.IntSlice(cards))
		if cards[0] == cards[1] && cards[2] == cards[3] && cards[2] == cards[1] {
			fmt.Println("four card")
		} else if cards[1] == cards[2] && cards[3] == cards[4] && cards[3] == cards[2]{
			fmt.Println("four card")
		} else if cards[0] == cards[1] && cards[1] == cards[2] && cards[3] == cards[4] {
			fmt.Println("full house")
		} else if cards[0] == cards[1] && cards[2] == cards[3] && cards[3] == cards[4] {
			fmt.Println("full house")
		} else if cards[0] == 1 && cards[1] == 10 && cards[2] == 11 && cards[3] == 12 && cards[4] == 13 {
			fmt.Println("straight")
		} else if cards[0]+1 == cards[1] && cards[1]+1 == cards[2] && cards[2]+1 == cards[3] && cards[3]+1 == cards[4] {
			fmt.Println("straight")
		} else if (cards[0] == cards[1] && cards[1] == cards[2]) || (cards[1] == cards[2] && cards[2] == cards[3]) || (cards[2] == cards[3] && cards[3] == cards[4]) {
			fmt.Println("three card")
		} else if ((cards[0] == cards[1]) && ((cards[2] == cards[3]) || (cards[3] == cards[4]))) || ((cards[1] == cards[2]) && (cards[3] == cards[4])) {
			fmt.Println("two pair")
		} else if cards[0] == cards[1] || cards[1] == cards[2] || cards[2] == cards[3] || cards[3] == cards[4] {
			fmt.Println("one pair")
		} else {
			fmt.Println("null")
		}
	}
}

C++: #include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main(){

	int numc[14];
	int in[5];

	while(1){
		
		for(int i=0; i<14; ++i){
			numc[i] = 0;
		}

		for(int i=0; i<5; ++i){
			
			int a;
			char c;
			
			cin >> a;

			if(cin.eof())
				return 0;

			numc[a]++;
			in[i] = a;

			if(i<4)
				cin >> c;
		}

		sort(numc, numc+14, greater<int>());
		sort(in, in+5);

		if(numc[0]>=4){
				cout << "four card" << endl;
				continue;
		}
		if(numc[0]==3&&numc[1]==2){
				cout << "full house" << endl;
				continue;
		}
		
		bool str = true;
			
		for(int i=0; i<4; ++i){
			
			if(in[i+1]-in[i]!=1){
				str = false;
				break;
			}
		}
				
		if(str||in[0]==1&&in[1]==10&&in[2]==11&&in[3]==12&&in[4]==13){
			cout << "straight" << endl;
			continue;
		}
		if(numc[0]>=3){
				cout << "three card" << endl;
				continue;
		}
		if(numc[0]>=2&&numc[1]>=2){
				cout << "two pair" << endl;
				continue;
		}
		if(numc[0]>=2){
				cout << "one pair" << endl;
				continue;
		}
		else{
				cout << "null" << endl;
				continue;
		}
	}

	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <functional>
using namespace std;

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);

	int card[13]; // A ~ 13
	int data[5];
	while(cin >> data[0]){
		fill(card, card + 13, 0);
		++card[data[0] - 1];
		char c0;
		for(int i = 1; i < 5; ++i){
			cin >> c0 >> data[i];
			++card[data[i] - 1];
		}

		sort(card, card + 13, greater<int>());
		/*
		for(int i = 0; i < 13; ++i){
			cout << card[i] << " ";
		}
		cout << endl;
		*/
		switch(card[0]){
			case 4 :
				cout << "four card" << endl;
				break;

			case 3 :
				if(card[1] == 2)
					cout << "full house" << endl;
				else
					cout << "three card" << endl;
				break;

			case 2 :
				if(card[1] == 2)
					cout << "two pair" << endl;
				else
					cout << "one pair" << endl;
				break;

			default :
				sort(data, data + 5);
				if((data[0] == 1 && data[1] == 10 && data[4] == 13) || (data[0] + 4 == data[4]))
					cout << "straight" << endl;
				else
					cout << "null" << endl;
				break;
		}
	}
	return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <utility>
#include <cstring>
#include <cmath>
#include <queue>
#include <map>
#include <set>
#include <stdio.h>
#include <sstream>
#include <stdlib.h>
#include <math.h>
using namespace std;
 
#define rep(i,n) for(int i=0; i<n; i++)
#define FOR(i,s,n) for(int i=s; i<n; i++)
#define ALL(x) x.begin(), x.end()
#define pb push_back
#define foreach(it,con) for(auto it=con.begin();it!=con.end();it++)
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> pii;
typedef vector<int> vi;

string judge(int* nums){
	set<int> st;
	map<int,int> count;

	
	bool is2 = false;
	bool is3 = false;
	int c=0;
	int mc=0;
	if(mc==5){
		return "straight";
	}

	return "null";
}

int main(){
	int nums[5];
	while(scanf("%d,%d,%d,%d,%d",&nums[0],&nums[1],&nums[2],&nums[3],&nums[4])+1){
		cout << judge(nums) << endl;
	}
	return 0;	
}

C++: #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
#define rep(i,a) for(int i = 0 ; i < a;  i ++)
int main(void){
  vector<int> array(5);
  vector<int> card(14);
  string s;  
  while(cin>>s){
    rep(i,5)array[i]=0;
    rep(i,14)card[i]=0;
    for(int i = 0, j = 0 ; i < s.size() ; i ++){
      if(s[i] == ','){
	j++;continue;
      }
      array[j] = array[j] * 10 +s[i]-'0';
    }
    rep(i,5)card[array[i]]++;
    sort(card.begin(),card.end(),greater<int>());
    //rep(i,5)cout<<card[i]<<endl;
    sort(array.begin(),array.end());
    if(
       (card[0 ] == 1 && card[1 ] == 1 && card[2 ] == 1 && card[3 ] == 1 && card[4] == 1 ) 
       //(card[10] == 1 && card[11] == 1 && card[12] == 1 && card[13] == 1 && card[1] == 1 )
       ){
      bool check=0;
      rep(i,4){
	if(array[i] != array[i+1] - 1){
	  check = 1;
	  break;
	}
      }
      if(!check)cout<<"straight"<<endl;
      else if((array[1] == 1 && array[10] == 1 && array[11] == 1 && array[12] == 1 && array[13] == 1 ) || 
	 (array[1] == 1 && array[2] == 1 && array[11] == 1 && array[12] == 1 && array[13] == 1 )){
	cout<<"straight"<<endl;
      }else cout<<"null"<<endl;
      continue;
    }
    switch(card[0]){
    case 4:
      cout<<"four card"<<endl;break;
    case 3:
      if(card[1]==2){
	cout<<"full house"<<endl;
      }else{
	cout<<"three card"<<endl;
      }
      break;
    case 2:
      if(card[1]==2){
	cout<<"two pair"<<endl;
      }else{
	cout<<"one pair"<<endl;
      }
      break;
    default:
      cout<<"null"<<endl;
    }
  }
}