#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<bool> num(8);
  int ans, cnt = 0;
  bool flag = false;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a <= 399) {
      num[0] = true;
    } else if (a <= 799) {
      num[1] = true;
    } else if (a <= 1199) {
      num[2] = true;
    } else if (a <= 1599) {
      num[3] = true;
    } else if (a <= 1999) {
      num[4] = true;
    } else if (a <= 2399) {
      num[5] = true;
    } else if (a <= 2799) {
      num[6] = true;
    } else if (a <= 3199) {
      num[7] = true;
    } else {
      cnt++;
    }
  }
  for (int i = 0; i < num.size(); i++) {
    if (num[i] == true) {
      ans++;
      flag = true;
    }
  }
  if (flag == true) {
    cout << ans << " " << ans + cnt << endl;
  } else {
    cout << cnt << " " << cnt << endl;
  }
}
