#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int const N = 100 * 1000 + 16;
int a[16];
int main() {
  cin.tie(0);
  cin.sync_with_stdio(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    x /= 400;
    a[x]++;
  }
  int cnt = 8 - count(a, a + 8, 0);
  cout << cnt << " " << min(cnt + a[8], 8) << endl;
}
