#include <bits/stdc++.h>
using namespace std;
long long MOD = 1000000007LL;
const double PI = 3.14159265358979323846;
int main() {
  int N;
  cin >> N;
  map<int, int> mp;
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    mp[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) {
    if (mp[i] != 0) {
      ++ans;
    }
  }
  int minAns = 0;
  int maxAns = 0;
  if (mp[8] <= ans) {
    minAns = ans;
    maxAns = min(8, ans + mp[8]);
  } else {
    minAns = min(8, ans + (mp[8] - ans));
    maxAns = min(8, ans + mp[8]);
  }
  cout << minAns << " " << maxAns << "\n";
  return 0;
}
