#include <bits/stdc++.h>
using namespace std;
int n, a, mn = 0, mx = 0;
map<string, int> color;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  color["gray"] = 0;
  color["brown"] = 0;
  color["green"] = 0;
  color["cyan"] = 0;
  color["blue"] = 0;
  color["yellow"] = 0;
  color["orange"] = 0;
  color["red"] = 0;
  color["above"] = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    switch (a) {
      case 1 ... 399:
        color["gray"]++;
        break;
      case 400 ... 799:
        color["brown"]++;
        break;
      case 800 ... 1199:
        color["green"]++;
        break;
      case 1200 ... 1599:
        color["cyan"]++;
        break;
      case 1600 ... 1999:
        color["blue"]++;
        break;
      case 2000 ... 2399:
        color["yellow"]++;
        break;
      case 2400 ... 2799:
        color["orange"]++;
        break;
      case 2800 ... 3199:
        color["red"]++;
        break;
      case 3200 ... 4800:
        color["above"]++;
        break;
    }
  }
  for (auto it = color.begin(); it != color.end(); ++it) {
    if (it->first != "above" && it->second != 0) mn++;
  }
  if (color["above"] > 0) {
    for (int i = 0; i < color["above"]; i++) {
      for (auto it = color.begin(); it != color.end(); ++it) {
        if (it->first != "above" && it->second < 1) {
          it->second = 1;
          mx++;
          break;
        }
      }
    }
  }
  if (mn == 0)
    cout << 1 << ' ' << mn + mx;
  else
    cout << mn << ' ' << mn + mx;
  return 0;
}
