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