#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m = 0, ans = 0;
  int a[105];
  int b[10];
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 400)
      b[0] = 1;
    else if (a[i] >= 400 && a[i] < 800)
      b[1] = 1;
    else if (a[i] >= 800 && a[i] < 1200)
      b[2] = 1;
    else if (a[i] >= 1200 && a[i] < 1600)
      b[3] = 1;
    else if (a[i] >= 1600 && a[i] < 2000)
      b[4] = 1;
    else if (a[i] >= 2000 && a[i] < 2400)
      b[5] = 1;
    else if (a[i] >= 2400 && a[i] < 2800)
      b[6] = 1;
    else if (a[i] >= 2800 && a[i] < 3200)
      b[7] = 1;
    else
      ans++;
  }
  for (int i = 0; i <= 7; i++) {
    m += b[i];
  }
  ans += m;
  if (ans >= 8) ans = 8;
  cout << m << " " << ans;
}
