#include <bits/stdc++.h>
using namespace std;
template <typename T>
void print_array(T* arr, int num) {
  for (int(i) = (0); (i) < (num); (i)++) cout << arr[i] << ' ';
  cout << endl;
}
template <typename T>
void print_vector(vector<T> vec) {
  for (int(i) = (0); (i) < (vec.size()); (i)++) cout << vec[i] << ' ';
  cout << endl;
}
int n, x, arr[10];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (int(i) = (0); (i) < (n); (i)++) {
    cin >> x;
    if (x >= 3200)
      arr[9]++;
    else
      arr[x / 400]++;
  }
  int ans1 = 0, ans2 = 0;
  for (int(i) = (0); (i) < (8); (i)++) {
    ans1 += !!arr[i];
    ans2 += !!arr[i];
  }
  if (ans1 == 0 && arr[9]) ans1++;
  ans2 = min(ans2 + arr[9], 8);
  cout << ans1 << " " << ans2;
}
