#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool check[8];
  for (int i = 0; i < 8; i++) {
    check[i] = false;
  }
  int a;
  int ans = 0;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a >= 3200)
      ans++;
    else
      check[a / 400] = true;
  }
  int ans2 = 0;
  for (int i = 0; i < 8; i++) {
    ans2 += check[i];
  }
  cout << ans2 << " " << ans + ans2 << endl;
}
