#include <bits/stdc++.h>
using namespace std;
const long long int LINF = 2000000000000000000ll;
const int INF = 1000000100;
const long long int MOD = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < (n); ++i) {
    int a;
    cin >> a;
    a /= 400;
    mp[a]++;
  }
  int ans = 0;
  int free = 0;
  for (auto x : mp) {
    if (x.first >= 8)
      free += x.second;
    else
      ans++;
  }
  cout << ans << " " << ans + free << endl;
  return 0;
}
