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

#define REP(i,n) for(int (i)=0; (i)<(n); (i)++)
#define For(i,a,b) for(int (i)=(a); (i)<(b); (i)++)

bool twopair(int a, int b, int c, int d, int e) {
    vector<int> v;
    v.push_back(a);
    v.push_back(b);
    v.push_back(c);
    v.push_back(d);
    v.push_back(e);
    sort(v.begin(), v.end());
    v.erase(unique(v.begin(), v.end()), v.end());
    if (v.size() == 3) return true;
    else return false;
}

bool straight(int a, int b, int c, int d, int e) {
    vector<int> v;
    v.push_back(a);
    v.push_back(b);
    v.push_back(c);
    v.push_back(d);
    v.push_back(e);
    sort(v.begin(), v.end());
    if (v[4]-v[3] == 1 && v[3]-v[2] == 1 && v[2]-v[1] == 1) {
        if (v[1]-v[0] == 1 || (v[0] == 1 && v[4] == 13)) return true;
        else return false;
    }else return false;
}

bool fullhouse(int a, int b, int c, int d, int e) {
    vector<int> v;
    v.push_back(a);
    v.push_back(b);
    v.push_back(c);
    v.push_back(d);
    v.push_back(e);
    sort(v.begin(), v.end());
    if (v[3] == v[4]) return true;
    else return false;
}
    
int getMaxPair(int a, int b, int c, int d, int e) {
    vector<int> v;
    v.push_back(a);
    v.push_back(b);
    v.push_back(c);
    v.push_back(d);
    v.push_back(e);
    sort(v.begin(), v.end());
    vector<int> cnt;
    int crt = 0;
    int min = v[0];
    REP(i,4) {
        if (v[i+1] == min) {
            crt++;
        }else {
            cnt.push_back(crt);
            min = v[i+1];
            crt = 0;
        }
    }
    cnt.push_back(crt);
    sort(cnt.begin(), cnt.end());
    return cnt.back() + 1;
}

int main() {
    int a,b,c,d,e;
    char ch;
    while(cin>>a>>ch>>b>>ch>>c>>ch>>d>>ch>>e) {
        switch(getMaxPair(a,b,c,d,e)) {
            case 1:
                if (straight(a,b,c,d,e)) {
                    cout << "straight" << endl;
                }else {
                    cout << "null" << endl;
                }
                break;
            case 2:
                
                if (twopair(a,b,c,d,e)) {
                    cout << "two pair" << endl;
                }else {
                    cout << "one pair" << endl;
                }
                break;
            case 3:
                if (fullhouse(a,b,c,d,e)) {
                    cout << "full house" << endl;
                }else {
                    cout << "three card" << endl;
                }
                break;
            case 4:
                cout << "four card" << endl;
        }
    }
    
    return 0;
}