def same?(f,*ns)
  r = true
  ns.each do |n|
    unless f == n then r = false; break end
  end
  return r
end

def succ?(f,*ns)
  r = true
  ns.each.with_index do |n, idx|
    unless f == (n-idx-1) then r = false; break end
  end
  return r
end

while gets
  a,b,c,d,e = $_.split(",").map(&:to_i).sort
  if same?(a,b,c,d) or same?(b,c,d,e) then puts "four card"
  elsif (same?(a,b,c) and d==e) or (a==b and same?(c,d,e)) then puts "full house"
  elsif (a==1 and b==10 and succ?(b,c,d,e)) or succ?(a,b,c,d,e) then puts "straight"
  elsif same?(a,b,c) or same?(b,c,d) or same?(c,d,e) then puts "three card"
  elsif (a==b and c==d) or (a==b and d==e) or (b==c and d==e) then puts "two pair"
  elsif a==b or b==c or c==d or d==e then puts "one pair"
  else puts "null"
  end
end