#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, color[9] = {};
  cin >> n;
  for (int i = 0, a; i < n; i++) {
    cin >> a;
    if (a <= 399)
      color[0]++;
    else if (a <= 799)
      color[1]++;
    else if (a <= 1199)
      color[2]++;
    else if (a <= 1599)
      color[3]++;
    else if (a <= 1999)
      color[4]++;
    else if (a <= 2399)
      color[5]++;
    else if (a <= 2799)
      color[6]++;
    else if (a <= 3199)
      color[7]++;
    else
      color[8]++;
  }
  int minc = 0, maxc = 0;
  for (int i = 0; i <= 8; i++) {
    if (i == 8)
      maxc += color[i];
    else if (color[i]) {
      minc++;
      maxc++;
    }
  }
  cout << minc << ' ' << maxc << endl;
}
