#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T>
inline bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <typename T>
inline bool chmin(T &a, T b) {
  if (b < a) {
    a = b;
    return true;
  }
  return false;
}
template <typename T>
T gcd(T a, T b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
template <typename T>
T lcm(T a, T b) {
  return a * b / gcd(a, b);
}
template <typename T>
void vdebug(vector<T> v) {
  for (auto vv : v) {
    cout << vv << " ";
  }
  cout << endl;
}
template <typename T>
void adebug(T arr[], int n) {
  for (int i = 0; i < n; i++) {
    cout << arr[i] << " ";
  }
  cout << endl;
}
void ans(bool b) {
  if (b)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
void ans2(bool b) {
  if (b)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
int keta(ll num) {
  int k = 0;
  while (num > 0) {
    num /= 10;
    k++;
  }
  return k;
}
int dx[] = {1, -1, 0, 0, 1, -1, 1, -1};
int dy[] = {0, 0, 1, -1, 1, -1, -1, 1};
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, a;
  int marker[8];
  for (int i = 0; i < 8; i++) {
    marker[i] = 0;
  }
  cin >> n;
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200) {
      marker[a / 400] = 1;
    } else {
      cnt++;
    }
  }
  int res = 0;
  for (int i = 0; i < 8; i++) {
    if (marker[i]) res++;
  }
  if (res == 0 && cnt > 0) {
    cout << 1 << " " << 8 << endl;
    return 0;
  }
  cout << res << " " << res + cnt << endl;
  return 0;
}
