#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int MOD = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  int a, free = 0;
  bool c[8] = {};
  for (int i = 0; i < (n); i++) {
    cin >> a;
    if (a >= 3200)
      free++;
    else
      c[a / 400] = true;
  }
  int cnt = 0;
  for (int i = 0; i < (8); i++) {
    if (c[i] == true) cnt++;
  }
  if (free > cnt)
    cout << free << " " << cnt + free << endl;
  else
    cout << cnt << " " << cnt + free << endl;
}
