#include<bits/stdc++.h>
using namespace std;
int main(){
	int a[50],x;
	int c[20]={0};
	int i;
	for(i=0;i<50;i++){
		cin>>x;
		c[x]++;
	}
	int max=0;
	for(i=0;i<20;i++){
		if(c[i]>c[max]) max=i;
	} 
	cout<<c[max];
}
/**************************************************************
	Problem: 1180
	User: fuyijun
	Language: C++
	Result: Accepted
	Time:6 ms
	Memory:2072 kb
****************************************************************/