#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, int> m;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a <= 399)
      m[1]++;
    else if (a <= 799)
      m[2]++;
    else if (a <= 1199)
      m[3]++;
    else if (a <= 1599)
      m[4]++;
    else if (a <= 1999)
      m[5]++;
    else if (a <= 2399)
      m[6]++;
    else if (a <= 2799)
      m[7]++;
    else if (a <= 3199)
      m[8]++;
    else
      m[9]++;
  }
  int min = m.size();
  int max = m.size();
  if (m[9] && min != 1) {
    min -= 1;
    max += m[9] - 1;
  }
  cout << min << " " << max << endl;
}
