#include <bits/stdc++.h>
using namespace std;
int store[107];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int clr;
    scanf("%d", &clr);
    if (clr >= 1 && clr <= 399) store[1]++;
    if (clr >= 400 && clr <= 799) store[2]++;
    if (clr >= 800 && clr <= 1199) store[3]++;
    if (clr >= 1200 && clr <= 1599) store[4]++;
    if (clr >= 1600 && clr <= 1999) store[5]++;
    if (clr >= 2000 && clr <= 2399) store[6]++;
    if (clr >= 2400 && clr <= 2799) store[7]++;
    if (clr >= 2800 && clr <= 3199) store[8]++;
    if (clr >= 3200) store[9]++;
  }
  int cnt = 0;
  for (int i = 1; i <= 8; i++) {
    if (store[i]) cnt++;
  }
  int cnt_L1 = 0, cnt_L2 = 0;
  if (store[9]) {
    if (cnt)
      cnt_L1 = 0;
    else
      cnt_L1 = 1;
    cnt_L2 = min(store[9], 8 - cnt);
  }
  cout << cnt + cnt_L1 << ' ' << cnt + cnt_L2 << "\n";
}
