Beusil's Ttibu-Ttibu Sticker Collection
InterviewTime limit1sMemory limit1024 MB
Given N uppercase letter stickers, find how many full copies of the word BRONZESILVER can be spelled from them.
문제

There is a Beusil chip, the second most delicious snack in the world.
Each Beusil chip contains one sticker with a letter from A to Z.
If you collect stickers and mail them to spell BRONZESILVER, they will ship you one bag of Gold Chips, the most delicious snack in the world. Calculate the maximum number of Gold Chip bags you can receive with the stickers you have collected so far.
입력
The first line contains the number of letter stickers you have collected, .
The second line lists stickers, each with an uppercase letter.
출력
Print the maximum number of Gold Chip bags you can receive.