#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long MOD = 1e9 + 7;
int main() {
  int N;
  cin >> N;
  int check[9];
  int max_count = 0;
  int min_count = 0;
  memset(check, 0, sizeof check);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      max_count++;
      continue;
    }
    for (int j = 1; j <= 8; j++) {
      if (a < 400 * j) {
        if (check[j] == 0) {
          max_count++;
          min_count++;
          check[j] = 1;
        }
        break;
      }
    }
  }
  cout << min_count << " " << max_count << endl;
  return 0;
}
