#include <bits/stdc++.h>
using namespace std;
int main() {
  int color[8];
  int any = 0;
  for (int i = 0; i < (8); ++i) {
    color[i] = 0;
  }
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); ++i) {
    cin >> a[i];
  }
  for (int i = 0; i < (n); ++i) {
    if (a[i] < 400)
      color[0] = 1;
    else if (a[i] < 800)
      color[1] = 1;
    else if (a[i] < 1200)
      color[2] = 1;
    else if (a[i] < 1600)
      color[3] = 1;
    else if (a[i] < 2000)
      color[4] = 1;
    else if (a[i] < 2400)
      color[5] = 1;
    else if (a[i] < 2800)
      color[6] = 1;
    else if (a[i] < 3200)
      color[7] = 1;
    else if (a[i] >= 3200)
      any++;
  }
  int ans = 0;
  for (int i = 0; i < (8); ++i) {
    ans += color[i];
  }
  int ans_max = min(8, ans + any);
  if (ans == 0) ans = 1;
  cout << ans << " " << ans_max << endl;
}
