#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int INF = 1 << 29;
int n;
int a[101];
int b[15];
int main() {
  int cnt = 0;
  cin >> n;
  memset(b, 0, sizeof(b));
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200) {
      cnt++;
      continue;
    }
    for (int j = 0; j < 13; j++) {
      if (a[i] < (j + 1) * 400) {
        b[j]++;
        break;
      }
    }
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i] && i < 8) count++;
  }
  int mini, maxi;
  if (count + cnt >= 8)
    maxi = 8;
  else
    maxi = count + cnt;
  if (count)
    mini = count;
  else
    mini = 1;
  cout << mini << " " << maxi << endl;
  return 0;
}
