#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const int MOD = 998244353;
const long long int INF = 4e18;
int main() {
  int n;
  cin >> n;
  map<int, int> mp;
  int kind = 0, maxx = 0;
  for (int i = (0); i < (n); i++) {
    int p;
    cin >> p;
    if (p >= 3200) {
      maxx++;
      continue;
    } else if (mp[p / 400] == 0) {
      mp[p / 400]++;
      kind++;
    }
  }
  printf("%d %d", kind, kind + maxx);
  return 0;
}
