#include <bits/stdc++.h>
using namespace std;

int main() {
  int N,a;
  cin >> N;
  vector<int> num(9,0);
  for (int i=0; i<N; i++) {
    cin >> a;
    num[min(a/400,8)]++;
  }
  int ans = 0;
  for (int i=0; i<8; i++) {
    if (num[i] != 0) {
      ans++;
    }
  }
  cout << max(ans,1) << ' ' << ans + num[8] << endl;
}