#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int INF = 2e9;
int clr[10];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      clr[8]++;
      continue;
    }
    for (int j = 1; j <= 8; j++) {
      if (a < j * 400) {
        clr[j - 1]++;
        break;
      }
    }
  }
  int cnt = 0;
  for (int i = 0; i <= 7; i++) {
    if (clr[i]) cnt++;
  }
  cout << cnt << " ";
  cout << cnt + clr[8] << endl;
}
