#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[10] = {0};
  for (int i = 0; i < (n); i++) {
    int x;
    cin >> x;
    a[min(x / 400, 8)]++;
  }
  int cnt = 0;
  for (int i = 0; i < (8); i++)
    if (a[i] != 0) cnt++;
  cout << max(cnt, 1) << ' ' << min(a[8] + cnt, 8) << endl;
}
