#include <bits/stdc++.h>
using namespace std;
const long long LLINF = 9223372036854775807;
const int MOD = 1000000007;
int main() {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < (int)N; i++) cin >> a[i];
  int rate[9] = {};
  for (int i = 0; i < (int)N; i++) {
    if (a[i] >= 3200)
      rate[8]++;
    else
      rate[a[i] / 400]++;
  }
  int r_min = 0;
  for (int i = 0; i < (int)8; i++)
    if (rate[i] != 0) r_min++;
  int r_max = r_min + rate[8];
  cout << r_min << " " << r_max << endl;
  return 0;
}
