#include <bits/stdc++.h>
using namespace std;
vector<int> a;
int N;
int main() {
  cin >> N;
  int check[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < (N); i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      check[8]++;
    else
      check[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < (8); i++) {
    if (check[i] != 0) ans++;
  }
  int m = min(ans + check[8], 8);
  cout << max(ans, 1) << " " << m;
}
