#include <bits/stdc++.h>
using namespace std;
int n, a[15000];
int color[8];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, a[1000], cnt = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200)
      cnt++;
    else
      color[a[i] / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) ans++;
  }
  int minn, maxn;
  if (ans > 0)
    minn = ans;
  else
    minn = 1;
  maxn = ans + cnt;
  if (maxn > 8) maxn = 8;
  cout << minn << " " << maxn << endl;
  return 0;
}
