#include <bits/stdc++.h>
#define rep(i,cc,n) for(int i=cc;i<=n;++i)
using namespace std;

int main() {
  int N;
  cin >> N;

  map<int,int> m;
  rep(i,0,N-1) {
    int n;
    cin >> n;
    if (3200 <= n) n = 3200;
    m[n/400]++;
  }

  int a1 = 0, a2 = 0;
  rep(i,0,7) if (m.count(i) != 0) a1++;
  a2 = a1 + m[8];
  if (a1 == 0) a1 = 1;

  cout << a1 << ' ' << a2 << endl;
  return 0;
}
