$<.map{|i|a=i.split(?,).map(&:to_i).sort;b=a.map{|j|a.count(j)}.max;s=a.uniq.size;puts b>3?"four card":b>2?s>2?"three card":"full house":b>1?s>3?"one pair":"two pair":a[4]-a[0]<5||a[1]>9?:straight: :null}