#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int cnt = 0;
  int d[9] = {};
  cin >> N;
  int a[N];
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < N; i++) {
    if (a[i] / 400 == 0)
      d[0]++;
    else if (a[i] / 400 == 1)
      d[1]++;
    else if (a[i] / 400 == 2)
      d[2]++;
    else if (a[i] / 400 == 3)
      d[3]++;
    else if (a[i] / 400 == 4)
      d[4]++;
    else if (a[i] / 400 == 5)
      d[5]++;
    else if (a[i] / 400 == 6)
      d[6]++;
    else if (a[i] / 400 == 7)
      d[7]++;
    else if (a[i] / 400 >= 8)
      d[8]++;
  }
  if (d[8] > 8) d[8] = 8;
  for (int i = 0; i < 8; i++) {
    if (d[i] > 0) cnt++;
  }
  if ((cnt == 0) && (d[8] > 0)) {
    cout << 1 << " " << d[8];
  } else if ((d[8] > 0) && (d[8] + cnt <= 8)) {
    cout << cnt << " " << cnt + d[8];
  } else if ((d[8] > 0) && (d[8] + cnt >= 9)) {
    cout << cnt << " " << 8;
  } else {
    cout << cnt << " " << cnt;
  }
  return 0;
}
