#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int rate[8], any = 0;
  for (int i = (0); i < (8); ++i) rate[i] = 0;
  for (int i = (0); i < (n); ++i) {
    int in;
    cin >> in;
    if (in >= 3200)
      any++;
    else
      rate[in / 400]++;
  }
  int MIN = 0, MAX;
  for (int i = (0); i < (8); ++i)
    if (rate[i] != 0) MIN++;
  MAX = MIN + any;
  if (MIN == 0) MIN = 1;
  if (MAX > 8) MAX = 8;
  cout << MIN << " " << MAX << endl;
}
