#include <bits/stdc++.h>
const int INF = 2e9;
using namespace std;
using Graph = vector<vector<int>>;
int main() {
  int n;
  cin >> n;
  vector<int> a(12, 0);
  for (long long i = 0; i < (n); ++i) {
    int b;
    cin >> b;
    b /= 400;
    a[b]++;
  }
  int ans = 0;
  int cnt = 0;
  for (long long i = 0; i < (7); ++i) {
    if (a[i + 1] != 0) ans++;
  }
  ans += a[8] + a[9] + a[10];
  cout << ans << " " << ans + cnt << endl;
}
