407964: GYM102953 1 Banner Display
Description
You're trying to make several banners that say "coderams" on them, for an upcoming in-person coding competition. However, you have a limited number of letter stickers that you can use. All you have is a long string of $$$n$$$ lowercase letter stickers. Given this, your task is to figure out the maximum possible number of complete banners (that say "coderams" on them, not just part of the string), given the letter stickers that you have.
InputThe first line of input consists of a single positive integer $$$n$$$ $$$(1 <= n <= 10^5)$$$: the number of letter stickers that you have.
The next line consists of a single $$$n$$$-character string, each character representing the letter of one sticker that you have. All stickers will have lowercase letters on them.
OutputOutput the number of complete banners that you can make with the letter stickers you have.
ScoringFull problem: 6 points
ExamplesInput18 arcmodessmarcodarcOutput
1Input
4 codeOutput
0Input
32 ramscodecoderamsramscodecoderamsOutput
4