#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a.at(i);
    a[i] /= 400;
  }
  map<int, int> mp;
  int free = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 8; j++)
      if (a[i] == j) mp[j]++;
    if (a[i] > 7) free++;
  }
  int ans = 0;
  for (auto p : mp) ans++;
  cout << ans << " " << ans + free << endl;
  return 0;
}
