#coding:utf-8

class Cards
	def initialize(args)
		@cards = args
		@rank = "nil"
		@cards.sort!
	end

	def getCards
		@cards
	end

	def rankcheck
		
		if four then
			@rank = "four card"
		elsif fullhouse then
			@rank = "full house"
		elsif straight then
			@rank = "straight"
		elsif three then
				@rank = "three card"
		elsif two then  			
			@rank = "two pair"
		elsif one then
			@rank = "one pair"
		else
			@rank = "null"
		end
		return @rank
	end

	def four
		a = check(@cards)
		uniq = unique(a,1)
		result = (a.size==4 && uniq)? true : false
	end
	def fullhouse
		a = check(@cards)
		uniq = unique(a,2)
		result = (a.size==5 && uniq)? true : false
	end
	def straight
		a,b,c = @cards[0],@cards[2], @cards[-1]
		sum = @cards.inject(0){|tmp,x| tmp+x}
		if sum==(a+c)*2+b && check(@cards).size==0 then
			result  = true	
		end
		result = true if @cards == [1,10,11,12,13]
		result = false if @cards == [1,2,11,12,13]
		return result
	end
	def three
		a = check(@cards)
		uniq = unique(a,1)
		result = (a.size==3 && uniq)? true : false
	end
	def two
		a = check(@cards)
		uniq = unique(a,2)
		result = (a.size==4 && uniq)? true : false
	end
	def one
		a = check(@cards)
		uniq = unique(a,1)
		result =  (a.size==2 && uniq)? true : false
	end
	
	def check(args)
		args.select{|x|args.index(x) != args.rindex(x)}
	end
	def unique(args,n)
		tmp = args.uniq.size==n
	end
	
end

while !STDIN.eof? do
	str = gets.chomp.split(',').map(&:to_i)
	cards = Cards.new(str)
	#p cards.getCards

	print "#{cards.rankcheck}\n"

end