#!ruby -aplF,
g=$F.group_by &:to_i
s=g.size
m=g.map{|k,v|v.size}.max
k=g.keys.sort
$_=m>3?"four card":m>2?s>2?"three card":"full house":m>1?s>3?"one pair":"two pair":k[4]-k[0]<5||k[1]>9?:straight: :null