#include <bits/stdc++.h>   using namespace std;   int a[1010], d[1010];   int main() {     int n;     cin >> n;     for (int i = 1; i <= n; i++) {       cin >> a[i];       d[a[i]]++;     }     int mx = 0, mxi = 0;     for (int i = 1; i <= n; i++) {       if (d[a[i]] > mx) mx = d[a[i]];       if (d[a[i]] != 0) {         mxi++;         d[a[i]] = 0;       }     }     cout << mx <<     << mxi;     return 0;   }   