#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <complex>
using namespace std;

typedef long long ll;
typedef pair<int,int> P;

#define all(c) (c).begin(),(c).end()
#define pb push_back
#define mp make_pair
#define ERASE(v,i) (v).erase(remove(all(v),i),(v).end())
#define rep(i,n) for(int i=0;i<(int)n;++i)
#define each(it,c) for(typeof((c).begin()) it=(c).begin();it!=(c).end();++it)
#define debug(x) cerr<<#x<<" = "<<(x)<<endl;
#define LINE cerr<<"LINE: "<<__LINE__<<endl;

inline int toInt(string s){int v;istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x){ostringstream sout;sout<<x;return sout.str();}
template<class T> void preview(T a,T b){for(T it=a;it!=b;++it)cerr<<*it<<" ";cerr<<endl;}

const int INF = 100000000;
const double PI = acos(-1.0), EPS = 1e-10;

int main() {
	for(string line; cin >> line;) {
		rep(i,line.length()) if(line[i] == ',') line[i] = ' ';
		istringstream is(line);
		vector<int> card(5);
		rep(i,5) is >> card[i];
		sort(all(card));

		map<int, int> m;
		rep(i,5) m[card[i]]++;

		// four cards
		{
			bool four_card = false;
			int two_pair = 0;
			bool three_cards = false;
			each(it, m) {
				if(it->second == 4) four_card = true;
				if(it->second == 3) three_cards = true;
				if(it->second == 2) two_pair++;
			}

			bool streat = true;
			for(int i = 1; i < 5; i++) {
				if(card[i] != card[i - 1] + 1) streat = false;
			}
			if(card[0] == 1 && card[1] == 10 && card[2] == 11 && card[3] == 12 && card[4] == 13) streat = true;

			string ans;
			if(four_card) ans = "four card";
			else if(three_cards && two_pair) ans = "full house";
			else if(streat) ans = "straight";
			else if(three_cards) ans = "three card";
			else if(two_pair == 2) ans = "two pair";
			else if(two_pair == 1) ans = "one pair";
			else ans = "null";

			cout << ans << endl;
		}
	}

	return 0;
}