def straight?(cards)
  _cards = cards.dup
  for i in 0..1 #1,10,11,12,13だったら10,11,12,13,14とする
    _cards[i] += 13 if _cards[i] <= 2
  end
  _cards.sort! #再ソート
  f = true
  for i in 1..4 #連番判定
    f = false unless _cards[i] == _cards[i-1]+1
  end
  return f
end

def card_group_by(cards)
  return cards.group_by{|card|
    card
  }.map{|k, v|
    [k, v.size]
  }.sort_by{|e| #枚数が多い順に並べる
    -e[1]
  }
end

def one_pair?(cards)
  gcards = card_group_by(cards)
  if gcards[0][1] == 2 && !two_pair?(cards) then
    return true
  end
  return false
end

def two_pair?(cards)
  gcards = card_group_by(cards)
  if gcards[0][1] == 2 && gcards[1][1] == 2 then
    return true
  end
  return false
end

def three_card?(cards)
  gcards = card_group_by(cards)
  if gcards[0][1] == 3 && !full_house?(cards) then
    return true
  end
  return false
end

def full_house?(cards)
  gcards = card_group_by(cards)
  if gcards[0][1] == 3 && gcards[1][1] == 2 then
    return true
  end
  return false
end

def four_card?(cards)
  gcards = card_group_by(cards)
  if gcards[0][1] == 4 then
    return true
  end
  return false
end

while s = gets
  break if s == nil
  cards = s[0..-2].split(",").map{|card|
    card.to_i
  }.sort
  if four_card?(cards) then
    puts "four card"
  elsif full_house?(cards) then
    puts "full house"
  elsif straight?(cards) then
    puts "straight"
  elsif three_card?(cards) then
    puts "three card"
  elsif two_pair?(cards) then
    puts "two pair"
  elsif one_pair?(cards) then
    puts "one pair"
  else
    puts "null"
  end
end