var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var Arr=(input.trim()).split("\n");
for(var I=0;I<Arr.length;I++){
   var a=Arr[I].split(",").map(Number);
   var arr=[];
   for(var i=0;i<13;i++)arr[i]=0;
      a.forEach(function(v){
      arr[v-1]++;
   });
   var copy=arr.slice();
   arr.sort(function(a,b){return b-a;});
   var ans;
   if(arr[0]>=4)ans="four card";
   else if(arr[0]==3 && arr[1]==2)ans="full house";
   else if((copy.join("")).match(/11111|1000000001111/))ans="straight";
   else if(arr[0]==3)ans="three card";
   else if(arr[0]==2 && arr[1]==2)ans="two pair";
   else if(arr[0]==2)ans="one pair";
   else ans="null";
   console.log(ans);
}