#include <bits/stdc++.h>
const long long MOD = 1000000007;
using namespace std;
int main() {
  int n, ovcnt = 0, cnt = 0;
  cin >> n;
  bool used[8] = {false};
  for (int i = 0; i < (n); ++i) {
    int a;
    cin >> a;
    if (a >= 3200)
      ++ovcnt;
    else if (!used[a / 400]) {
      used[a / 400] = true;
      ++cnt;
    }
  }
  cout << cnt << " " << cnt + ovcnt << "\n";
  return 0;
}
