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