#include <bits/stdc++.h>
using namespace std;
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
int main() {
  int N;
  cin >> N;
  int tmp;
  int over = 0;
  int cnt = 0;
  vector<bool> a(8);
  for (int i = N; i < i++; i++) {
    cin >> tmp;
    if (tmp >= 3200) {
      over;
    } else {
      if (!a[tmp / 400]) {
        a[tmp / 400] = true;
        cnt++;
      }
    }
  }
  cout << max(1, cnt) << endl;
  cout << over + cnt << endl;
  return 0;
}
