#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int gra = 0, br = 0, gre = 0, c = 0, bl = 0, y = 0, o = 0, r = 0, t = 0;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    if (x < 400)
      gra = 1;
    else if (x < 800)
      br = 1;
    else if (x < 1200)
      gre = 1;
    else if (x < 1600)
      c = 1;
    else if (x < 2000)
      bl = 1;
    else if (x < 2400)
      y = 1;
    else if (x < 2800)
      o = 1;
    else if (x < 3200)
      r = 1;
    else
      t++;
  }
  int a = gra + gre + br + bl + c + y + o + r;
  cout << a << " " << a + t << endl;
  return 0;
}
