#include <bits/stdc++.h>
const int INF = 1e9;
const long long LINF = 1e18;
const int MOD = 1e9 + 7;
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<bool> color(8, 0);
  int pro = 0;
  for (int i = 0; i < n; i++) {
    int a = 0;
    cin >> a;
    if (a >= 3200)
      pro++;
    else {
      for (int j = 0; j < 8; j++) {
        if (400 * j <= a && a < 400 * (j + 1)) color[j] = true;
      }
    }
  }
  int rateColor = 0;
  for (int i = 0; i < 8; i++)
    if (color[i] == true) rateColor++;
  cout << rateColor << " " << rateColor + pro << endl;
}
