#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
int N;
int sum = 0, c = 0;
int a[100010];
bool colors[8];
int main() {
  cin >> N;
  for (int i = 0; i < (N); ++i) cin >> a[i];
  for (int i = 0; i < (8); ++i) colors[i] = false;
  for (int i = 0; i < (N); ++i) {
    if (a[i] >= 3200)
      c++;
    else if (colors[a[i] / 400] == false) {
      sum++;
      colors[a[i] / 400] = true;
    }
  }
  if (sum == 0) sum++;
  cout << sum << " ";
  sum = 0;
  cout << sum + c << endl;
  return 0;
}
