#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[9] = {};
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    if (tmp < 400)
      a[0]++;
    else if (tmp < 800)
      a[1]++;
    else if (tmp < 1200)
      a[2]++;
    else if (tmp < 1600)
      a[3]++;
    else if (tmp < 2000)
      a[4]++;
    else if (tmp < 2400)
      a[5]++;
    else if (tmp < 2800)
      a[6]++;
    else if (tmp < 3200)
      a[7]++;
    else
      a[8]++;
  }
  int count = 0;
  for (int i = 0; i < 8; i++)
    if (a[i]) count++;
  cout << count << " " << count + a[8] << endl;
}
