#include <iostream>
#include <string>
using namespace std;
int main()
{
int max = -2147483647;
int k = 0;
int arr[10];
for(int i = 0; i < 10; i++) cin >> arr[i];
for(int i = 0; i< 10; i++)
if (arr[i] == max) k += 1;
if (arr[i] > max) { max = arr[i]; k = 1; }
}
cout << k;
#include <iostream>
#include <string>
using namespace std;
int main()
{
int max = -2147483647;
int k = 0;
int arr[10];
for(int i = 0; i < 10; i++) cin >> arr[i];
for(int i = 0; i< 10; i++)
{
if (arr[i] == max) k += 1;
if (arr[i] > max) { max = arr[i]; k = 1; }
}
cout << k;
}