#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  map<int, int> m;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] >= 1 && a[i] <= 399)
      m[0]++;
    else if (a[i] >= 400 && a[i] <= 799)
      m[1]++;
    else if (a[i] >= 800 && a[i] <= 1199)
      m[2]++;
    else if (a[i] >= 1200 && a[i] <= 1599)
      m[3]++;
    else if (a[i] >= 1600 && a[i] <= 1999)
      m[4]++;
    else if (a[i] >= 2000 && a[i] <= 2399)
      m[5]++;
    else if (a[i] >= 2400 && a[i] <= 2799)
      m[6]++;
    else if (a[i] >= 2800 && a[i] <= 3199)
      m[7]++;
    else
      m[8]++;
  }
  int cnt = 0;
  for (auto itr = m.begin(); itr != m.end(); itr++) {
    if (itr->second > 0 && itr->first != 8) cnt++;
  }
  cout << cnt << " " << cnt + m[8] << endl;
}
