#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  int arr[n], col[8] = {0}, cnt = 0, min = 0, max = 0;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] > 3199)
      cnt++;
    else
      col[arr[i] / 400]++;
  }
  for (int i = 0; i < 8; i++)
    if (col[i]) min++;
  if (cnt > 8 - min)
    max = 8;
  else
    max = min + (cnt);
  cout << min << " " << max;
  return 0;
}
