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