#include <bits/stdc++.h>
using namespace std;
int dx[] = {-1, 0, 1, 0};
int dy[] = {0, -1, 0, 1};
int ddx[] = {-1, 0, 1, 0, -1, 1, -1, 1};
int ddy[] = {0, -1, 0, 1, 1, 1, -1, -1};
long long gcd(long long x, long long y) {
  if (y == 0)
    return x;
  else
    return gcd(y, x % y);
}
long long lcm(long long x, long long y) { return (x * y) / gcd(x, y); }
int color[9];
void judge_color(int x) {
  int m = 400;
  for (int i = 0; i < 8; ++i) {
    if (x < m) {
      ++color[i];
      break;
    }
    m += 400;
  }
  if (x >= 3200) ++color[8];
}
int main() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; ++i) cin >> a[i];
  int cnt = 0;
  for (int i = 0; i < n; ++i) {
    judge_color(a[i]);
  }
  for (int i = 0; i < 8; ++i) {
    if (color[i] != 0) ++cnt;
  }
  if (cnt == 0)
    cout << 1 << " ";
  else
    cout << cnt << " ";
  if (cnt + color[8] > 8)
    cout << 8 << endl;
  else
    cout << cnt + color[8] << endl;
  return 0;
}
