#include <bits/stdc++.h>   using namespace std;   const int N = 105;   int freq[N];   int main() {     ios::sync_with_stdio(false);     cin.tie(0);     int n, m;     cin >> n >> m;     for (int i = 0; i < m; i++) {       int type;       cin >> type;       freq[type]++;     }     int start = 1, end = 100;     while (start <= end) {       int mid = (start + end) >> 1;       int persons = 0;       for (int types = 1; types <= 100; types++) {         persons += (freq[types] / mid);       }       if (persons >= n)         start = mid + 1;       else         end = mid - 1;     }     cout << end <<   n ;     return 0;   }   