while input = gets
  cards = input.split(",").map(&:to_i)
  seq = Array.new(13){0}
  cards.each{|i|
    seq[i-1] += 1
  }
  if seq.max == 4
    puts "four card"
  elsif seq.max == 3
    if (seq - [0]).size == 2
      puts "full house"
    else
      puts "three card"
    end
  elsif seq.max == 2
    if (seq - [0]).size == 3
      puts "two pair"
    else
      puts "one pair"
    end
  else
    str_seq = (seq + [seq[0]]).join
    if str_seq =~ /11111/
      puts "straight"
    else
      puts "null"
    end
  end
end