HI-ARC
InterviewTime limit1sMemory limit1024 MB
Given a string of uppercase letters, find how many complete sets of H, I, A, R, and C can be taken to make HI-ARC emojis.
- Level
Easy2 of 10
- Topics
- String, Implementation
- Solved
- No attempts yet
Problem

You are a big fan of ππ-πππ. So you want to make the emoji above.
You have a string of length . To make one emoji, you need one each of the characters π, π, π, π, and π. Find the maximum number of emojis you can make.
Input
The first line contains the integer , the length of string . ()
The second line contains the string . Every character of is an uppercase English letter.
Output
Print the maximum number of emojis you can make from the given string .