#include <bits/stdc++.h>
using namespace std;
int n;
int a[100100];
int cnt[10];
int b;
int cur = 0;
int mn, mx;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= n; i++) {
    if (a[i] >= 1 && a[i] <= 399) {
      cnt[0]++;
    } else if (a[i] >= 400 && a[i] <= 799) {
      cnt[1]++;
    } else if (a[i] >= 800 && a[i] <= 1199) {
      cnt[2]++;
    } else if (a[i] >= 1200 && a[i] <= 1599) {
      cnt[3]++;
    } else if (a[i] >= 1600 && a[i] <= 1999) {
      cnt[4]++;
    } else if (a[i] >= 2000 && a[i] <= 2399) {
      cnt[5]++;
    } else if (a[i] >= 2400 && a[i] <= 2799) {
      cnt[6]++;
    } else if (a[i] >= 2800 && a[i] <= 3199) {
      cnt[7]++;
    } else {
      b++;
    }
  }
  for (int i = 0; i <= 7; i++) {
    if (cnt[i]) {
      cur++;
    }
  }
  mx = min(8, cur + b);
  mn = max(1, cur);
  cout << mn << " " << mx;
  return 0;
}
