#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, int> mp;
  int count = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      count++;
    else
      mp[a / 400]++;
  }
  int cnt = 0;
  for (auto a : mp) {
    if (a.second > 0) cnt++;
  }
  if (count > 0)
    cout << cnt << " " << cnt + count << endl;
  else
    cout << cnt << " " << cnt << endl;
}
