#include<iostream>
#include<vector>
#include<algorithm>

using namespace std;

int FourCard(vector<int>);
int HullHouse(vector<int>);
int Straight(vector<int>);
int ThreeCard(vector<int>);
int TwoPair(vector<int>);
int OnePair(vector<int>);

int main(){
  int a,b,c,d,e;
  char c1,c2,c3,c4;
  vector<int> card;

  while(cin >> a >> c1 >> b >> c2 >> c >> c3 >> d >> c4 >> e){
    card.push_back(a);
    card.push_back(b);
    card.push_back(c);
    card.push_back(d);
    card.push_back(e);

    sort(card.begin(), card.end());

    if(FourCard(card) == 1)
      cout << "four card" << endl;
    else if(HullHouse(card) == 1)
      cout << "hull house" << endl;
    else if(Straight(card) == 1)
      cout << "straight" << endl;
    else if(ThreeCard(card) == 1)
      cout << "three card" << endl;
    else if(TwoPair(card) == 1)
      cout << "two pair" << endl;
    else if(OnePair(card) == 1)
      cout << "one pair" << endl;
    else
      cout << "null" << endl;

    card.clear();
  }

  return 0;
}

int FourCard(vector<int> x){
  int i;
  for(i=0; i<2; ++i){
    if(x[i] == x[i+1] && x[i] == x[i+2] && x[i] == x[i+3])
      return 1;
  }
  return 0;
}

int HullHouse(vector<int> x){
  if((x[0] == x[1] && x[0] == x[2] && x[3] == x[4])||(x[0] == x[1] && x[2] == x[3] && x[2] == x[4]))
    return 1;
  else
    return 0;
}

int Straight(vector<int> x){
  if(x[0] == x[1]-1 && x[0] == x[2]-2 && x[0] == x[3]-3 && x[0] == x[4]-4)
    return 1;
  else if(x[0] == 1 && x[1] == 10 && x[2] == 11 && x[3] == 12 && x[4] == 13)
    return 1;
  else
    return 0;
}

int ThreeCard(vector<int> x){
  int i;
  for(i=0;i<3; ++i){
    if(x[i] == x[i+1] && x[i] == x[i+2])
      return 1;
  }
  return 0;
}

int TwoPair(vector<int> x){
  int i;
  if((x[0] == x[1] && x[2] == x[3])||(x[0] == x[1] && x[3] == x[4])||(x[1] == x[2] && x[3] == x[4]))
    return 1;
  else return 0;
}

int OnePair(vector<int> x){
  int i;
  for(i=0; i<4; ++i){
    if(x[i] == x[i+1])
      return 1;
  }
  return 0;
}