#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
using namespace std;
int main()
{
  int N;
  cin >> N;
  vector<int> a(N);
  int ra[9] = {0};
  rep(i, N)
  {
    int tmp;
    cin >> tmp;
    a[i] = tmp;
    if (tmp / 400 < 8)
    {
      ra[tmp / 400]++;
    }
    else
    {
      ra[8]++;
    }
  }
  int mini = 0;
  rep(i, 8)
  {
    if (ra[i] > 0)
    {
      mini++;
    }
  }
  mini = min(mini, (ra[8])?1:200000));
  int maxi = max(mini + ra[8], mini);
  cout << mini << " " << maxi << endl;
  return 0;
}