#include <bits/stdc++.h>
using namespace std;
vector<vector<pair<long long int, long long int> > > adj(100005);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n, a, cnt = 0;
  int arr[10] = {0};
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    cin >> a;
    if (a <= 399)
      arr[0]++;
    else if (a >= 400 && a <= 799)
      arr[1]++;
    else if (a >= 800 && a <= 1199)
      arr[2]++;
    else if (a >= 1200 && a <= 1599)
      arr[3]++;
    else if (a >= 1600 && a <= 1999)
      arr[4]++;
    else if (a >= 2000 && a <= 2399)
      arr[5]++;
    else if (a >= 2400 && a <= 2799)
      arr[6]++;
    else if (a >= 2800 && a <= 3199)
      arr[7]++;
    else
      arr[8]++;
  }
  for (long long int i = 0; i <= 7; i++) {
    if (arr[i] != 0) cnt++;
  }
  cout << cnt << " " << cnt + arr[8] << endl;
  return 0;
}
