#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  int a[n];
  map<int, int> mp;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 400)
      mp[1]++;
    else if (a[i] < 800)
      mp[2]++;
    else if (a[i] < 1200)
      mp[3]++;
    else if (a[i] < 1600)
      mp[4]++;
    else if (a[i] < 2000)
      mp[5]++;
    else if (a[i] < 2400)
      mp[6]++;
    else if (a[i] < 2800)
      mp[7]++;
    else if (a[i] < 3200)
      mp[8]++;
    else
      mp[9]++;
  }
  int cnt = 0;
  for (int i = 1; i < 9; i++) {
    if (mp[i] != 0) {
      cnt++;
    }
  }
  cout << cnt << " ";
  int ans;
  if (cnt + mp[9] <= 8) {
    ans = cnt + mp[9];
  } else {
    ans = 8;
  }
  cout << ans << endl;
}
