#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a;
  int color = 0;
  cin >> n;
  int g = 0;
  bool flag[8];
  for (int i = 0; i < 8; i++) {
    flag[i] = false;
  }
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a <= 399) {
      if (flag[0] == false) {
        color++;
        flag[0] = true;
      }
    } else if (400 <= a && a <= 799) {
      if (flag[1] == false) {
        color++;
        flag[1] = true;
      }
    } else if (800 <= a && a <= 1199) {
      if (flag[2] == false) {
        color++;
        flag[2] = true;
      }
    } else if (1200 <= a && a <= 1599) {
      if (flag[3] == false) {
        color++;
        flag[3] = true;
      }
    } else if (1600 <= a && a <= 1999) {
      if (flag[4] == false) {
        color++;
        flag[4] = true;
      }
    } else if (2000 <= a && a <= 2399) {
      if (flag[5] == false) {
        color++;
        flag[5] = true;
      }
    } else if (2400 <= a && a <= 2799) {
      if (flag[6] == false) {
        color++;
        flag[6] = true;
      }
    } else if (2800 <= a && a <= 3199) {
      if (flag[7] == false) {
        color++;
        flag[7] = true;
      }
    } else if (3200 <= a) {
      g++;
    }
  }
  if (color > 0) {
    cout << color << ' ';
  } else {
    cout << 1 << ' ';
  }
  if (color + g > 8) {
    cout << 8 << endl;
  } else {
    cout << color + g << endl;
  }
  return 0;
}
