#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x[9] = {0};
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 1 && a <= 399)
      x[0]++;
    else if (a >= 400 && a <= 799)
      x[1]++;
    else if (a >= 800 && a <= 1199)
      x[2]++;
    else if (a >= 1200 && a <= 1599)
      x[3]++;
    else if (a >= 1600 && a <= 1999)
      x[4]++;
    else if (a >= 2000 && a <= 2399)
      x[5]++;
    else if (a >= 2400 && a <= 2799)
      x[6]++;
    else if (a >= 2800 && a <= 3199)
      x[7]++;
    else
      x[8]++;
  }
  int cnt1 = 0, cnt2 = x[8];
  for (int i = 0; i < 8; i++) {
    if (x[i] >= 1) {
      cnt1++;
    }
  }
  int minans = cnt1;
  int maxans = cnt1 + cnt2;
  cout << minans << " " << maxans << endl;
  return 0;
}
