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