Zeref wants to get hold of secret information of Natsu and he comes to know that it was stored in a list of images. So as a first step he wants to find the no.of images of each extension of from given input. Help him in finding the solution.
First line contains the file names seperated by space
Line containing the space seperated integers which are the count of PNG, BMP, JPEG images respectively