#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a <= 399)
      mp[0]++;
    else if (a <= 799)
      mp[1]++;
    else if (a <= 1199)
      mp[2]++;
    else if (a <= 1599)
      mp[3]++;
    else if (a <= 1999)
      mp[4]++;
    else if (a <= 2399)
      mp[5]++;
    else if (a <= 2799)
      mp[6]++;
    else if (a <= 3199)
      mp[7]++;
    else
      mp[8]++;
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (mp[i] != 0) count++;
  }
  int m = count;
  count += mp[8];
  cout << count << " " << m << endl;
  return 0;
}
