#include <bits/stdc++.h>
using namespace std;
const int EPS = 1e-9;
const int MOD = 1e9 + 7;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<bool> B(8);
  int freep = 0;
  for (int i = 0; i < (n); i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      freep++;
    else
      B[a / 400] = true;
  }
  int color = 0;
  for (int i = 0; i < (8); i++) {
    if (B[i]) color++;
  }
  cout << color << " " << color + freep << endl;
  return 0;
}
