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