Write a program that reads a non-empty sequence of integer numbers,
and tells how many of them are equal to the last one.
Input
Input consists of a natural number n> 0,
followed by n integer numbers.
Output
Print the number of elements
that are equal to the last one, this one excluded.
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.