#include <bits/stdc++.h>
using namespace std;
int a[105];
int main() {
  int ma = 0, mi = 1000, t, i, j, n, num = 0, n1 = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> t;
    switch (t / 400) {
      case 0:
        a[0] = 1;
        break;
      case 1:
        a[1] = 1;
        break;
      case 2:
        a[2] = 1;
        break;
      case 3:
        a[3] = 1;
        break;
      case 4:
        a[4] = 1;
        break;
      case 5:
        a[5] = 1;
        break;
      case 6:
        a[6] = 1;
        break;
      case 7:
        a[7] = 1;
        break;
    }
    if (t >= 3200) num++;
  }
  for (i = 0; i < 8; i++) n1 += a[i];
  if (n1 == 0)
    cout << "1 ";
  else
    cout << n1 << " ";
  if (n1 + num > 9)
    cout << "9";
  else
    cout << n1 + num;
  return 0;
}
