#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;

int card[13];
int solve(){
    int m;
    vector<int> n;
    for(int i=0;i<13;i++){
        if(card[i]) n.push_back(card[i]);
    }
    for(int i=0;i<n.size();i++){
        for(int j=1;j<n.size()-i;i++){
            if(n[j-1] < n[j]) swap(n[j-1], n[j]);
        }
    }
    if(n.size()==2){
        if(n[0] == 4){
            cout << "four card" << endl;
        }else{
            cout << "full house" << endl;
        }
    }else if(n.size()==3){
        if(n[0] == 3){
            cout << "three card" << endl;
        }else{
            cout << "two pair" << endl;
        }
    }else if(n.size()==4){
        cout << "one pair" << endl;
    }else{
        for(int i=0;i<13-3;i++){
            if(card[i]&&card[i+1]&&card[i+2]&&card[i+3]&&card[(i+4)%13]){
                cout << "straight" << endl;
                return 0;
            }
        }
        cout << "null" << endl;
    }
}

int main(){
    char comma;
    int m;
    while(cin >> m){
        for(int i=0;i<13;i++){
            card[i] = 0;
        }
        m--;
        card[m]++;
        for(int i=0;i<4;i++){
            cin >> comma >> m;
            m--;
            card[m]++;
        }
        solve();
    }
}