#include <bits/stdc++.h>
using namespace std;
int hantei(int x) {
  int ret_val = 0;
  if (x < 400)
    ret_val = 1;
  else if (x < 800)
    ret_val = 2;
  else if (x < 1200)
    ret_val = 3;
  else if (x < 1600)
    ret_val = 4;
  else if (x < 2000)
    ret_val = 5;
  else if (x < 2400)
    ret_val = 6;
  else if (x < 2800)
    ret_val = 7;
  else if (x < 3200)
    ret_val = 8;
  return ret_val;
}
int main() {
  int N;
  cin >> N;
  vector<int> check(9);
  for (int i = 0; i < (int)(N); i++) {
    int a;
    cin >> a;
    check[hantei(a)]++;
  }
  if (check[0] == 0) {
    int ans = 0;
    for (int i = 0; i < (int)(9); i++) {
      if (check[i]) ans++;
    }
    cout << ans << ' ' << ans << endl;
    return 0;
  } else {
    int ans = 0;
    for (int i = 1; i < (int)(9); i++) {
      if (check[i]) ans++;
    }
    cout << ans << ' ' << ans + check[0] << endl;
    return 0;
  }
}
