#include<bits/stdc++.h>
using ll  = long long;
#define int ll
#define rep(i,n) for(int i=0;i<n;i++)
#define loop(i,s,n) for(int i=s;i<n;i++)
#define erep(e,v) for(auto && e :v)
#define all(in) in.begin(), in.end()
#define MP make_pair
#define INF (sizeof(int) == 4 ? (int)1e9:(int)1e18)
#define EPS 0.0000000001
using namespace std;
template<class T, class S> void cmin(T &a, const S &b) { if (a > b)a = b; }
template<class T, class S> void cmax(T &a, const S &b) { if (a < b)a = b; }
template<typename Head, typename Value> auto vectors(const Head &head, const Value &v) { return vector<Value>(head, v); }
template<typename Head, typename... Tail> auto vectors(Head x, Tail... tail) { auto inner = vectors(tail...); return vector<decltype(inner)>(x, inner); }
template<class T> void join(T a){for(auto itr :a){if(itr != *a.begin())cout << " "; cout << itr;} }
using ld  = long double;
using pii = pair<int,int>;
using piii = pair<int,pii>;
int W,H;
int dx[]={0,0,1,-1}, dy[]={1,-1,0,0};
bool valid(int x,int y){return (0<=x&&x<W)&&(0<=y&&y<H);}
auto isValid(vector<int>v){
    vector<int>st = {1,10,11,12,13};
    if(v.back() - v.front() == 4 or v == st)return true;
    else return false;
}
signed main(){
    vector<int>v(5);
    char gomi;
    while(cin >> v[0] >> gomi >> v[1] >> gomi >> v[2] >> gomi >> v[3]  >> gomi >> v[4]){
        sort(all(v));
        auto u = v;
        u.erase(unique(all(u)),u.end());
        if(u.size() == 2){
            if(v.front() != v[1] or v.back() != v[3]){
                cout << "four card" << endl;
            } else {
                cout << "full house" << endl;
            }
        } else if(u.size() == 5 and isValid(v)){
            
            cout << "straight" << endl;
            
        }else if(u.size() == 3){
            
            bool flag = false;
            rep(i,v.size())
                if(i and i+1 != v.size() and v[i-1] == v[i] and v[i] == v[i+1]) flag = true;
            
            if(flag)cout << "three card" << endl;
            else cout << "two pair" << endl;
            
        } else if(u.size() == 4){
            cout << "one pair" << endl;
        }
        else cout << "null" << endl;
    }
}



