/run ruby
points=0
DICE=['う','お','こ','ま','ち']
while points == 0
res=""
5.times do |n|
res += DICE.sample
end
points += 1000 if res.include?('うんち')
points += 1000 if res.include?('うんこ')
points += 1000 if res.include?('まんこ')
points += 5000 if res.include?('おまんこ')
points += 1000 if res.include?('ちんこ')
points += 3000 if res.include?('ちんちん')
points += 10000 if res.include?('おちんちん')
end
print points, res