#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
const int mod = 1e+9 + 7;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  map<int, int> mp;
  long long cnt = 0;
  for (int i = 0; i < (n); ++i) {
    cin >> a[i];
    if (a[i] >= 3200)
      cnt++;
    else
      mp[a[i] / 400]++;
  }
  long long c = 0;
  for (auto p : mp) {
    c++;
  }
  cout << c << " " << c + cnt << endl;
}
