#include <bits/stdc++.h>
using namespace std;
using namespace std;
long long powm(long long base, long long exp, long long mod = 1000000007) {
  long long ans = 1;
  while (exp) {
    if (exp & 1) ans = (ans * base) % mod;
    exp >>= 1, base = (base * base) % mod;
  }
  return ans;
}
long long a[10];
int main() {
  long long n, x;
  cin >> n;
  for (long long i = 1; i < n + 1; i++) {
    cin >> x;
    if (x >= 1 and x <= 399)
      a[0]++;
    else if (x >= 400 and x <= 799)
      a[1]++;
    else if (x >= 800 and x <= 1199)
      a[2]++;
    else if (x >= 1200 and x <= 1599)
      a[3]++;
    else if (x >= 1600 and x <= 1999)
      a[4]++;
    else if (x >= 2000 and x <= 2399)
      a[5]++;
    else if (x >= 2400 and x <= 2799)
      a[6]++;
    else if (x >= 2800 and x <= 3199)
      a[7]++;
    else
      a[8]++;
  }
  long long minm = 1000111000111000111LL, maxm = 0, cnt = 0;
  for (long long i = 0; i < 8; i++)
    if (a[i]) cnt++;
  if (cnt == 0)
    cout << 1 << " " << min(a[8], 9LL);
  else
    cout << cnt << " " << min(cnt + a[8], 9LL);
  return 0;
}
