#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long LINF = 0x3f3f3f3f3f3f3f3fll;
int main() {
  int n;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < (n); ++i) {
    int t;
    cin >> t;
    mp[t / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < (8); ++i) {
    if (mp[i] > 0) ans++;
  }
  if (ans = 0 && mp[8] > 0) {
    ans++;
    mp[8]--;
  }
  cout << ans << " " << min(8, ans + mp[8]) << endl;
}
