#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool color[8] = {};
  int free = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      free++;
    else
      color[a / 400] = true;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) cnt++;
  }
  int mn = max(cnt, 1);
  int mx = min(cnt + free, 8);
  cout << mn << " " << mx << endl;
  return 0;
}
