12626 - I ❤ Pizza


Difficulty : easy

Solution Description :
Ad hoc problem

Just count number of "M", "A", "R", "G", "I", "T"
Then
Set Count "A" = Count "A" / 3 and Count "R" = Count "R"/2

After then find find the minimum value from count "M", "A", "R", "G", "I", "T"
and print the minimum value.