#!ruby -palF,
r=[[1,4,"four card"],[2,3,"full house"],[1,1,3,"three card"],[1,2,2,"two pair"],[1,1,1,2,"one pair"]].find{|l|l[0..-2]==$F.group_by{|i|i}.map{|k,v|v.size}.sort}
$_=r ?r[-1]:($F.map!(&:to_i).sort![4]-$F[0]==4||$F[1]-$F[0]==9)?"straight":"null"