#include <bits/stdc++.h>
using namespace std;
int n, m, k;
int a[10000];
int b[8];
int main() {
  while (~scanf("%d", &n)) {
    memset(a, 0, sizeof(a)), memset(b, 0, sizeof(b));
    for (int i = 0; i < n; i++) scanf("%d", &a[i]);
    int ans = 0;
    int flag = 0;
    for (int i = 0; i < n; i++) {
      if (a[i] >= 0 && a[i] <= 399) {
        b[0]++;
      }
      if (a[i] >= 400 && a[i] <= 799) {
        b[1]++;
      }
      if (a[i] >= 800 && a[i] <= 1199) {
        b[2]++;
      }
      if (a[i] >= 1200 && a[i] <= 1599) {
        b[3]++;
      }
      if (a[i] >= 1600 && a[i] <= 1999) {
        b[4]++;
      }
      if (a[i] >= 2000 && a[i] <= 2399) {
        b[5]++;
      }
      if (a[i] >= 2400 && a[i] <= 2799) {
        b[6]++;
      }
      if (a[i] >= 2800 && a[i] <= 3199) {
        b[7]++;
      }
      if (a[i] >= 3200) {
        flag++;
      }
    }
    for (int i = 0; i < 8; i++)
      if (b[i]) ans++;
    int ans1 = ans;
    if (flag && ans < 8) {
      while (flag-- && ans < 8) {
        ans++;
      }
    }
    if (ans1 == 0) ans1++;
    cout << ans1 << ' ' << ans << endl;
  }
  return 0;
}
