#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
int n;
int a[101];
void input() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  input();
  int color[9] = {0};
  for (int i = 0; i < n; i++) {
    if (a[i] <= 399)
      color[0]++;
    else if (400 <= a[i] && a[i] <= 799)
      color[1]++;
    else if (800 <= a[i] && a[i] <= 1199)
      color[2]++;
    else if (1200 <= a[i] && a[i] <= 1599)
      color[3]++;
    else if (1600 <= a[i] && a[i] <= 1999)
      color[4]++;
    else if (2000 <= a[i] && a[i] <= 2399)
      color[5]++;
    else if (2400 <= a[i] && a[i] <= 2799)
      color[6]++;
    else if (2800 <= a[i] && a[i] <= 3199)
      color[7]++;
    else
      color[8]++;
  }
  int ans1 = 0;
  int ans2 = 0;
  for (int i = 0; i < 8; i++)
    if (color[i] > 0) ans1++;
  if (ans1 == 0) ans1 = 1;
  if (ans1 + color[8] > 8) ans2 = 8;
  cout << ans1 << ' ' << ans2 << endl;
  return 0;
}
