#include <bits/stdc++.h>
using namespace std;
vector<long long int> vec;
vector<vector<long long int> > vec2;
long long int MOD = 1000000007;
long long int INF = 1145141919454519;
int main() {
  long long int N;
  cin >> N;
  map<long long int, long long int> mp;
  for (long long int i = 0; i < N; i++) {
    long long int t;
    cin >> t;
    mp[t / 400]++;
  }
  long long int num = mp.size();
  long long int red = mp[8];
  long long int mn = num;
  if (red > 0) mn = max((long long int)1, num - 1);
  long long int mx = num;
  if (red > 0) mx = mx - 1 + red;
  cout << mn << " " << mx << endl;
}
