#include <iostream>
#include <algorithm>
#include <cstdio>
using namespace std;

int main() {
  int x;
  while(scanf("%d",&x)==1) {
    int a[15];
    fill(a,a+14,0);
    a[x]++;
    for(int i=0; i<4; i++) {
      scanf("%*c%d",&x);
      a[x]++;
    }
    int z=1,cnt=0;
    for(int i=1; i<14; i++) {
      if(a[i]==2) {
	if(z==1) z=2;
	else if(z==2) z=3;
	else if(z==4) z=6;
      }
      if(a[i]==3) {
	if(z==1) z=4;
	else if(z==2) z=6;
      }
      if(a[i]==4) {
	z=7;
      }
      if(a[i]==1) {
	cnt++;
      } else cnt=0;
      if(cnt==5) z=5;
    }
    if(cnt==4 && a[1]==1) z=5;

    if(z==1) cout << "null" << endl;
    if(z==2) cout << "one pair" << endl;
    if(z==3) cout << "two pair" << endl;
    if(z==4) cout << "three card" << endl;
    if(z==5) cout << "straight" << endl;
    if(z==6) cout << "full house" << endl;
    if(z==7) cout << "four card" << endl;
  }
  return 0;
}
