#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int c[9];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    a /= 400;
    c[min(a, 8)]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i)
    if (c[i] > 0) ++ans;
  cout << max(ans, 1) << " " << min(ans + c[8], 8) << endl;
}
