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