#include <bits/stdc++.h>
using namespace std;
inline void init() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}
int n, a[101];
int f(int x) {
  if (1 <= x && x <= 399) {
    return 0;
  }
  if (400 <= x && x <= 799) {
    return 1;
  }
  if (800 <= x && x <= 1199) {
    return 2;
  }
  if (1200 <= x && x <= 1599) {
    return 3;
  }
  if (1600 <= x && x <= 1999) {
    return 4;
  }
  if (2000 <= x && x <= 2399) {
    return 5;
  }
  if (2400 <= x && x <= 2799) {
    return 6;
  }
  if (2800 <= x && x <= 3199) {
    return 7;
  }
  return 8;
}
int main(void) {
  init();
  cin >> n;
  for (int i = 0; i < (n); ++i) cin >> a[i];
  int used[9] = {0}, x;
  for (int i = 0; i < (n); ++i) {
    x = f(a[i]);
    if (x != 8 && used[x] == 0) {
      used[x] = 1;
    } else if (x == 8) {
      used[x]++;
    }
  }
  int mi, ma, red;
  mi = ma = red = 0;
  for (int i = 0; i < 9; ++i) {
    if (i != 8 && used[i] == 1) {
      mi++;
      ma++;
    } else if (i == 8) {
      red = used[i];
    }
  }
  cout << mi << " " << ((ma + red > 9) ? 9 : ma + red) << endl;
  return 0;
}
