#include <bits/stdc++.h>
using namespace std;
int dx[8] = {0, 1, 0, -1, 1, -1, 1, -1};
int dy[8] = {1, 0, -1, 0, 1, -1, -1, 1};
int color(int rate) {
  if (rate <= 399)
    return 0;
  else if (rate <= 799)
    return 1;
  else if (rate <= 1199)
    return 2;
  else if (rate <= 1599)
    return 3;
  else if (rate <= 1999)
    return 4;
  else if (rate <= 2399)
    return 5;
  else if (rate <= 2799)
    return 6;
  else if (rate <= 3199)
    return 7;
  else
    return 8;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int N;
  cin >> N;
  map<int, int> cnt;
  for (int i = (0); i < (N); ++i) {
    int a;
    cin >> a;
    cnt[color(a)]++;
  }
  int b = 0;
  for (int i = (0); i < (8); ++i) {
    b += (cnt[i] != 0);
  }
  cout << b << " " << b + cnt[8] << endl;
  return 0;
}
