#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int red = 0;
  map<int, int> mp;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (1 <= a && a <= 399)
      mp[0]++;
    else if (400 <= a && a <= 799)
      mp[1]++;
    else if (800 <= a && a <= 1199)
      mp[2]++;
    else if (1200 <= a && a <= 1599)
      mp[3]++;
    else if (1600 <= a && a <= 1999)
      mp[4]++;
    else if (2000 <= a && a <= 2399)
      mp[5]++;
    else if (2400 <= a && a <= 2799)
      mp[6]++;
    else if (2800 <= a && a <= 3199)
      mp[7]++;
    else if (a <= 3200)
      red++;
  }
  int mn, mx;
  mn = (int)mp.size();
  mx = min(8, (int)mp.size() + red);
  cout << mn << " " << mx << endl;
  return 0;
}
