#include <iostream>
#include <string>

using namespace std;

class poker{
private:
	int cardCnt[13];
	string audit;
	bool onePair(){
		int pairCnt = 0;
		for(int i = 0;i < 13;i++){
			if(cardCnt[i] == 2){
				pairCnt++;
			}
		}
		return pairCnt == 1;
	}
	bool twoPair(){
		int pairCnt = 0;
		for(int i = 0;i < 13;i++){
			if(cardCnt[i] == 2){
				pairCnt++;
			}
		}
		return pairCnt == 2;
	}
	bool threeCard(){
		for(int i = 0;i < 13;i++){
			if(cardCnt[i] == 3){
				return true;
			}
		}
		return false;
	}
	bool straight(){
		const int exception[] = {1,0,0,0,0,0,0,0,0,1,1,1,1};
		for(int i = 0;i < 10;i++){
			if(cardCnt[i] == 1 && cardCnt[i + 1] == 1 && cardCnt[i + 2] == 1 && cardCnt[i + 3] == 1 && cardCnt[i + 4] == 1){
				return true;
			}
		}
		for(int i = 0;i < 13;i++){
			if(exception[i] != cardCnt[i]){
				return false;
			}
		}
		return true;
	}
	bool fullHouse(){
		bool b1 = false, b2 = false;
		for(int i = 0;i < 13;i++){
			if(cardCnt[i] == 3){
				b1 = true;
			}else if(cardCnt[i] == 2){
				b2 = true;
			}
		}
		return b1 && b2;
	}
	bool fourCard(){
		for(int i = 0;i < 13;i++){
			if(cardCnt[i] == 4){
				return true;
			}
		}
		return false;
	}
public:
	string getAudit(){
		return audit;
	}
	poker(int c[5]){
		for(int i = 0;i < 13;i++){
			cardCnt[i] = 0;
		}
		for(int i = 0;i < 5;i++){
			cardCnt[c[i] - 1]++;
		}
		if(fourCard()){
			audit = "four card";
		}else if(fullHouse()){
			audit = "full house";
		}else if(straight()){
			audit = "straight";
		}else if(threeCard()){
			audit = "three card";
		}else if(twoPair()){
			audit = "two pair";
		}else if(onePair()){
			audit = "one pair";
		}else{
			audit = "null";
		}
	}
};

int main(void){
	int crd[5];
	while(1){
		if(cin.eof()){
			break;
		}
		for(int i = 0;i < 5;i++){
			cin >> crd[i];
			cin.get();
		}
		poker p(crd);
		cout << p.getAudit() << endl;
	}
}