Олимпиадный тренинг

Задача 43566. Number equal to last


Input
The first line contains the number N (1<=N<=20)  - the number of elements of a one-dimensional array. The second line contains N integers (all numbers according to modulo no more than 100).

Imprint
Print one number - the number of elements of the source array equal to the last element (the last element is not counted).
 
Examples
# Input Output
1 5
1 5 5 -4 5
2

Запрещенные операторы:count