#include <bits/stdc++.h>
using namespace std;
const int inf = 1 << 30;
const long long INF = 1ll << 60;
const double pi = acos(-1);
const double eps = 1e-8;
const long long mod = 1e9 + 7;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {1, 0, -1, 0};
int n;
vector<int> a(8);
int main() {
  cin >> n;
  int t = 0;
  for (int i = 0; i < n; i++) {
    int A;
    cin >> A;
    if (A / 400 > 7)
      t++;
    else
      a[A / 400]++;
  }
  int num = 0;
  for (int i = 0; i < 8; i++)
    if (a[i]) num++;
  if (num == 0)
    cout << 1 << ' ' << min(t, 8) << endl;
  else
    cout << num << ' ' << min(num + t, 8) << endl;
}
