#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; cin >> n; long long arr[100005]; int res = 0; for (int i=0; i> arr[i]; } sort(arr, arr+n); for (int i=n-1; i>=0; --i) { if (arr[i] == arr[n-1]) { res++; } else { break; } } cout << res << endl; return 0; }