#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
double PI = 4 * atan(1);
bool z[8];
int t;
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int x;
    cin >> x;
    if (x < 3200)
      z[x / 400] = 1;
    else
      t++;
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) sum += z[i];
  cout << sum << " " << min(8, sum + t);
}
