yaku = ["one pair", "full house", "three card", "two pair", "four card"]
while card = gets
  card = card.split(",").map(&:to_i).sort
  a = 1
  b = 0
  temp = 0
  card.each{|i|
    if i == temp
      a += 1
    elsif a != 1
      b = (b + b * a) + (4 - b) / 4 * a
      a = 1
    end
    temp = i
  }
  temp = card[0]
  if a + b == 1
    bool = true
    card[1..-1].each{|i|
      bool &= (temp + 1 == i)
      temp = i
    }
    if bool or card == [1,10,11,12,13]
      puts "straight"
    else
      puts "null"
    end
  else
    puts yaku[(a + b + a * b) % 5]
  end
end