readlines.each do |l|
  a,b,c,d,e = l.split(",").map(&:to_i).sort
  kinds = [a,b,c,d,e].uniq.size
  if a==d || b==e
    puts "four card"
  elsif kinds==2
    puts "full house"
  elsif kinds==5 && (e-a==4 || a==1 && e==13 && e-b==3)
    puts "straight"
  elsif a==c || b==d || c==e
    puts "three card"
  elsif kinds==3
    puts "two pair"
  elsif kinds==4
    puts "one pair"
  else
    puts "null"
  end
end