while l = gets
    a = l.split(",").map(&:to_i).sort
    g = a.group_by(&:itself)
    g = a.group_by(&:itself).values.map(&:size).sort
    if g == [1, 4]
        puts 'four card'
    elsif g == [2, 3]
        puts 'full house'
    elsif a == (a.min..a.max).to_a or a == [1] + (10..13).to_a
        puts 'straight'
    elsif g == [1, 1, 3]
        puts 'three card'
    elsif g == [1, 2, 2]
        puts 'two pair'
    elsif g == [1, 1, 1, 2]
        puts 'one pair'
    else
        puts 'null'
    end
end

