#include <bits/stdc++.h>
using namespace std;
int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
int main() {
  int n, a, c, color[8];
  int cnt = 0, ans1 = 0, ans2 = 0;
  for (int i = 0; i < 8; i++) {
    color[i] = 0;
  }
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    c = a / 400;
    switch (c) {
      case 0:
        color[0] = 1;
        break;
      case 1:
        color[1] = 1;
        break;
      case 2:
        color[2] = 1;
        break;
      case 3:
        color[3] = 1;
        break;
      case 4:
        color[4] = 1;
        break;
      case 5:
        color[5] = 1;
        break;
      case 6:
        color[6] = 1;
        break;
      case 7:
        color[7] = 1;
        break;
      default:
        cnt++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (color[i] == 1) {
      ans1++;
    }
  }
  ans2 = ans1 + cnt;
  if (ans2 > 8) {
    ans2 = 8;
  }
  if (ans1 == 0) {
    ans1 = 1;
  }
  cout << ans1 << " " << ans2 << endl;
  return 0;
}
