#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll read() {
  ll i;
  scanf("%lld", &i);
  return i;
}
signed main() {
  ll N = read();
  ll a[N];
  bool flag[8] = {false};
  ll fr = 0;
  for (ll i = ll(0); i < ll(N); i++) {
    a[i] = read();
    if (1 <= a[i] && a[i] <= 399)
      flag[0] = true;
    else if (400 <= a[i] && a[i] <= 799)
      flag[1] = true;
    else if (800 <= a[i] && a[i] <= 1199)
      flag[2] = true;
    else if (1200 <= a[i] && a[i] <= 1599)
      flag[3] = true;
    else if (1600 <= a[i] && a[i] <= 1999)
      flag[4] = true;
    else if (2000 <= a[i] && a[i] <= 2399)
      flag[5] = true;
    else if (2400 <= a[i] && a[i] <= 2799)
      flag[6] = true;
    else if (2800 <= a[i] && a[i] <= 3199)
      flag[7] = true;
    else
      fr++;
  }
  ll cnt = 0;
  for (ll i = ll(0); i < ll(8); i++) {
    if (flag[i] == true) cnt++;
  }
  ll min = cnt;
  if (min == 0 && fr >= 1) min = 1;
  ll max = cnt + fr;
  if (max >= 8) max = 8;
  cout << min << ' ' << max;
}
