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