#include <bits/stdc++.h>
using namespace std;
const int MAX = 100005;
const int MOD = 1e9 + 7;
const int INF = 0x3f3f3f3f;
bool a[10];
int main() {
  int n;
  cin >> n;
  int ans = 0, qq = 0, tem;
  while (n--) {
    cin >> tem;
    if (tem < 400)
      a[0] = true;
    else if (tem < 800)
      a[1] = true;
    else if (tem < 1200)
      a[2] = true;
    else if (tem < 1600)
      a[3] = true;
    else if (tem < 2000)
      a[4] = true;
    else if (tem < 2400)
      a[5] = true;
    else if (tem < 2800)
      a[6] = true;
    else if (tem < 3200)
      a[7] = true;
    else
      qq++;
  }
  for (int i = 0; i < 8; ++i) {
    if (a[i]) ans++;
  }
  int maxx;
  if (qq)
    maxx = ans + qq;
  else
    maxx = ans;
  if (maxx > 8) maxx = 8;
  if (ans == 0) ans = 1;
  cout << ans << " " << maxx;
  return 0;
}
