#include <bits/stdc++.h>
using namespace std;
int n;
int a, b;
int ans, mn;
int vis[10];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> b;
    if (b < 3200)
      vis[b / 400 + 1] = 1;
    else
      a++;
  }
  for (int i = 1; i <= 8; i++) {
    if (vis[i] == 1) ans++, mn++;
  }
  cout << mn << " " << (mn + a <= 13 ? mn + a : 13);
}
