while gets do
  c = Array.new(13){0}
  $_.chomp.split(',').map(&:to_i).each{|i| c[i-1] += 1}
  str = c.join('')
  c.select!{|v| v!=0}

  res = 'null'
  case c.sort
    when [1,1,1,1,1]
      res = 'straight' if str =~ /1{5}/ || str =~ /10{8}1{4}/
    when [1,4]
      res = 'four card'
    when [2,3]
      res = 'full house'
    when [1,1,3]
      res = 'three card'
    when [1,2,2]
      res = 'two pair'
    when [1,1,1,2]
      res = 'one pair'
  end
  puts res
end