#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int rate[100];
  int i = 0;
  int color = 0;
  int f0 = 0, f1 = 0, f2 = 0, f3 = 0, f4 = 0, f5 = 0, f6 = 0, f7 = 0, f8 = 0;
  cin >> N;
  while (i < N) {
    cin >> rate[i];
    i++;
  }
  i = 0;
  while (i < N) {
    if (rate[i] >= 1 and rate[i] <= 399) {
      if (f0 == 0) {
        color = color + 1;
      }
      f0++;
    } else if (rate[i] >= 400 and rate[i] <= 799) {
      if (f1 == 0) {
        color = color + 1;
      }
      f1++;
    } else if (rate[i] >= 800 and rate[i] <= 1199) {
      if (f2 == 0) {
        color = color + 1;
      }
      f2++;
    } else if (rate[i] >= 1200 and rate[i] <= 1599) {
      if (f3 == 0) {
        color = color + 1;
      }
      f3++;
    } else if (rate[i] >= 1600 and rate[i] <= 1999) {
      if (f4 == 0) {
        color = color + 1;
      }
      f4++;
    } else if (rate[i] >= 2000 and rate[i] <= 2399) {
      if (f5 == 0) {
        color = color + 1;
      }
      f5++;
    } else if (rate[i] >= 2400 and rate[i] <= 2799) {
      if (f6 == 0) {
        color = color + 1;
      }
      f6++;
    } else if (rate[i] >= 2800 and rate[i] <= 3199) {
      if (f7 == 0) {
        color = color + 1;
      }
      f7++;
    } else {
      f8++;
    }
    i++;
  }
  cout << color << " ";
  cout << color + f8;
  return 0;
}
