Feu un programa que accepti el tipus de cada animal que li vagi
arribant i al final mostri un recompte.
Entrada
L’entrada diverses línies amb una paraula cadascuna que acaben amb el
text END
Sortida
Retorna una línia per cada tipus d’animal en el mateix ordre que
hagin arribat i la seva quantitat.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.
Public test cases
Input
vaca
vaca
ovella
porc
porc
porc
ovella
vaca
porc
END
Output
vaca -> 3
ovella -> 2
porc -> 4
Input
vaca
vaca
ovella
porc
porc
porc
ovella
vaca
porc
END