#include <bits/stdc++.h>
using namespace std;
const long long int MOD = 1000000007;
const long long int INF = (long long int)1e15;
long long int S[10];
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long int N;
  cin >> N;
  for (long long int(i) = (0); (i) < (N); ++(i)) {
    long long int a;
    cin >> a;
    if (a >= 3200) a = 3200;
    S[a / 400]++;
  }
  long long int p = S[8];
  long long int a = 0;
  for (long long int(i) = (0); (i) < (8); ++(i)) {
    if (S[i] > 0) a++;
  }
  cout << a << " " << a + p << endl;
  return 0;
}
