#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int rate[8], o = 0;
  for (int i = 0; i < 8; i++) rate[i] = 0;
  int min = 0;
  for (int i = 0; i < n; i++) {
    int v, ch = 8;
    cin >> v;
    if (v >= 3200)
      o++;
    else if (v >= 2800)
      ch = 7;
    else if (v >= 2400)
      ch = 6;
    else if (v >= 2000)
      ch = 5;
    else if (v >= 1600)
      ch = 4;
    else if (v >= 1200)
      ch = 3;
    else if (v >= 800)
      ch = 2;
    else if (v >= 400)
      ch = 1;
    else if (v >= 0)
      ch = 0;
    if ((ch >= 0 && ch <= 7) && rate[ch] == 0) {
      rate[ch] = 1;
      min++;
    }
  }
  cout << min << " " << min + o << endl;
}
