#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const int INF = 1e9;
const long long LINF = 1e16;
const double PI = acos(-1.0);
int dx[8] = {0, 0, 1, -1, 1, 1, -1, -1};
int dy[8] = {1, -1, 0, 0, 1, -1, 1, -1};
long long N;
int c[10];
long long ans = 0LL;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cin >> N;
  int a[200];
  for (long long(i) = (0); (i) < (N); (i)++) {
    cin >> a[i];
  }
  for (long long(i) = (0); (i) < (N); (i)++) {
    if (a[i] < 400)
      c[0]++;
    else if (a[i] < 800)
      c[1]++;
    else if (a[i] < 1200)
      c[2]++;
    else if (a[i] < 1600)
      c[3]++;
    else if (a[i] < 2000)
      c[4]++;
    else if (a[i] < 2400)
      c[5]++;
    else if (a[i] < 2800)
      c[6]++;
    else if (a[i] < 3200)
      c[7]++;
    else
      c[8]++;
  }
  for (long long(i) = (0); (i) < (8); (i)++) {
    if (c[i] > 0)
      ans++;
    else if (c[8] > 0) {
      c[8]--;
      ans++;
    }
  }
  int ans2 = 0;
  for (long long(i) = (0); (i) < (8); (i)++) {
    if (c[i] > 0) ans2++;
  }
  cout << ans2 << " " << ans << endl;
  return 0;
}
