#include <bits/stdc++.h>
using namespace std;
template <typename T>
void out(T x) {
  cout << x << endl;
  exit(0);
}
using ll = long long;
const ll mod = 1e9 + 7;
const int maxn = 1e6 + 5;
int n;
int f[maxn];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  int any = 0;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    x /= 400;
    if (x >= 8) {
      any++;
    } else {
      f[x]++;
    }
  }
  int lo = 0;
  for (int i = 0; i < 8; i++) {
    lo += (f[i] > 0);
  }
  int hi = lo;
  for (int i = 0; i < 8 && any > 0; i++) {
    if (f[i] == 0) {
      hi++;
      any--;
    }
  }
  cout << lo << " " << hi << endl;
  return 0;
}
