#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int mod = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  int flag[9] = {};
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    flag[a / 400]++;
  }
  int mi = 0, ma;
  for (int i = 0; i < 8; i++)
    if (flag[i]) mi++;
  cout << max(mi, 1) << ' ' << mi + flag[8] << endl;
  return 0;
}
