#include <bits/stdc++.h>
using namespace std;
int change;
map<int, int> mp;
int main() {
  int n;
  cin >> n;
  mp[399] = 0;
  mp[799] = 0;
  mp[1199] = 0;
  mp[1599] = 0;
  mp[1999] = 0;
  mp[2399] = 0;
  mp[2799] = 0;
  mp[3199] = 0;
  for (int i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    if (a >= 3200) {
      change++;
      continue;
    }
    if (a < 400) mp[399]++;
    if (a > 399 && a < 800) mp[799]++;
    if (a > 799 && a < 1200) mp[1199]++;
    if (a > 1199 && a < 1600) mp[1599]++;
    if (a > 1599 && a < 2000) mp[1999]++;
    if (a > 1999 && a < 2400) mp[2399]++;
    if (a > 2399 && a < 2800) mp[2799]++;
    if (a > 2799 && a < 3200) mp[3199]++;
  }
  int temp = change, ans = 0;
  for (map<int, int>::iterator i = mp.begin(); i != mp.end(); i++) {
    if (i->second == 0) continue;
    temp -= (min(temp, i->second));
    ans++;
  }
  cout << ans << " ";
  for (map<int, int>::iterator i = mp.begin(); i != mp.end() && change; i++) {
    if (i->second != 0) continue;
    change--;
    ans++;
  }
  cout << ans << endl;
}
