#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;
    x = min(x, 8);
    a[x]++;
  }

  int cnt = 8 - count(a, a+8, 0);

  cout << (cnt?:1) << " " << cnt + a[8] << endl;
}