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