#include <bits/stdc++.h>
using namespace std;
long long a[100001];
int main(void) {
  int N;
  int a;
  bool flag[8] = {};
  int countA = 0;
  int count = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    int ans = a / 400;
    if (ans >= 8) {
      countA++;
    } else {
      flag[ans] = true;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (flag[i]) count++;
  }
  cout << count << " " << count + countA << endl;
  return 0;
}
