#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, result, exc;
  cin >> N;
  vector<int> res(8, 0);
  result = exc = 0;
  for (int i = 0; i < N; i++) {
    int ai;
    cin >> ai;
    if (ai >= 1 && ai <= 399) {
      res[0]++;
    } else if (ai >= 400 && ai <= 799) {
      res[1]++;
    } else if (ai >= 800 && ai <= 1199) {
      res[2]++;
    } else if (ai >= 1200 && ai <= 1599) {
      res[3]++;
    } else if (ai >= 1600 && ai <= 1999) {
      res[4]++;
    } else if (ai >= 2000 && ai <= 2399) {
      res[5]++;
    } else if (ai >= 2400 && ai <= 2799) {
      res[6]++;
    } else if (ai >= 2800 && ai <= 3199) {
      res[7]++;
    } else {
      exc++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (res[i] != 0) {
      result++;
    }
  }
  cout << result << " " << result + exc << endl;
}
