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