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 and PNG versions of the statement
are also given to help you, but they may contain some content
that is not well displayed. In case of doubt, always use the PDF.