#include <bits/stdc++.h>
using namespace std;
int a[101];
int cnt, x, b, c, d, e, f, g, h, ans;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    if (a[i] >= 0 && a[i] <= 399)
      x = 1;
    else if (a[i] >= 400 && a[i] <= 799)
      b = 1;
    else if (a[i] >= 800 && a[i] <= 1199)
      c = 1;
    else if (a[i] >= 1200 && a[i] <= 1599)
      d == 1;
    else if (a[i] >= 1600 && a[i] <= 1999)
      e = 1;
    else if (a[i] >= 2000 && a[i] <= 2399)
      f = 1;
    else if (a[i] >= 2400 && a[i] <= 2799)
      h = 1;
    else if (a[i] >= 2800 && a[i] <= 3199)
      g = 1;
    else
      cnt++;
  }
  if (ans == 0)
    return cout << 1 << ' ' << cnt, 0;
  else
    cout << ans << ' ' << cnt + ans;
}
