#include <iostream>
using namespace std;
int main() {    
int a[20] = {0};  // a:统计数组(对应0-19的出现次数)    
int x;            // x:每次输入的数字
    // for循环读取50个数字并统计    
for (int k = 0; k < 50; k++) {        
cin >> x;        
a[x]++;
    }
    int m = 0;        // m:最大出现次数
    // for循环查找最大值    
for (int t = 0; t < 20; t++) {        
if (a[t] > m) {            
m = a[t];
        }
    }
    cout << m << endl;    
return 0;
}
/**************************************************************
	Problem: 1180
	User: cyp
	Language: C++
	Result: Accepted
	Time:9 ms
	Memory:2072 kb
****************************************************************/