#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n;
  cin >> n;
  vector<int> a(n);
  bitset<8> bs(0);
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 400)
      bs.set(0);
    else if (a[i] < 800)
      bs.set(1);
    else if (a[i] < 1200)
      bs.set(2);
    else if (a[i] < 1600)
      bs.set(3);
    else if (a[i] < 2000)
      bs.set(4);
    else if (a[i] < 2400)
      bs.set(5);
    else if (a[i] < 2800)
      bs.set(6);
    else if (a[i] < 3200)
      bs.set(7);
    else
      cnt++;
  }
  int ansmin = max((int)bs.count(), 1),
      ansmax = min(8, (int)(bs.count()) + cnt);
  cout << ansmin << ' ' << ansmax << endl;
  return 0;
}
