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