#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
long long _MOD = 1000000009;
double EPS = 1e-10;
const int INF = INT_MAX / 2;
int main() {
  vector<int> a(100);
  int N;
  cin >> N;
  while (N--) {
    int x;
    cin >> x;
    a[x / 400]++;
  }
  int cnt = 0;
  for (int k = 0; k < 8; k++)
    if (a[k]) cnt++;
  int pro = 0;
  for (int k = 8; k < 100; k++) pro += a[k];
  cout << cnt << ' ' << cnt + pro << endl;
}
