def straight?(b)
  (0..8).each { |i| return true if b.slice(i, 5) == [1, 1, 1, 1, 1] }
  return b[0] == 1 && b.slice(9, 4) == [1, 1, 1, 1]
end

while s = gets
  b = Array.new(13, 0)
  s.split(',').map(&:to_i).each { |c| b[c - 1] += 1 } 

  d = b.clone.sort
  d.delete_if { |c| c == 0 } 

  if d == [1, 1, 1, 1, 1] && straight?(b)
    puts 'straight'
  elsif d == [1, 4]
    puts 'four card'
  elsif d == [2, 3]
    puts 'full house'
  elsif d == [1, 1, 3]
    puts 'three card'
  elsif d == [1, 2, 2]
    puts 'two pair'
  elsif d == [1, 1, 1, 2]
    puts 'one pair'
  else
    puts 'null'
  end 
end