#include <bits/stdc++.h>
using namespace std;
int n;
bool c[8];
int cnt;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  for (int i = (0); i < (8); ++i) c[i] = false;
  cin >> n;
  for (int i = (0); i < (n); ++i) {
    int a;
    cin >> a;
    if (a < 400)
      c[0] = true;
    else if (a < 800)
      c[1] = true;
    else if (a < 1200)
      c[2] = true;
    else if (a < 1600)
      c[3] = true;
    else if (a < 2000)
      c[4] = true;
    else if (a < 2400)
      c[5] = true;
    else if (a < 2800)
      c[6] = true;
    else if (a < 3200)
      c[7] = true;
    else
      cnt++;
  }
  int sum = 0;
  for (int i = (0); i < (8); ++i) {
    sum += (c[i] ? 1 : 0);
  }
  cout << sum << ' ' << sum + cnt << endl;
  return 0;
}
