#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<int> a(9);
  for (int i = 0; i < 9; i++) a[i] = 0;
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    if (tmp >= 3200)
      a[0]++;
    else if (tmp >= 2800)
      a[1]++;
    else if (tmp >= 2400)
      a[2]++;
    else if (tmp >= 2000)
      a[3]++;
    else if (tmp >= 1600)
      a[4]++;
    else if (tmp >= 1200)
      a[5]++;
    else if (tmp >= 800)
      a[6]++;
    else if (tmp >= 400)
      a[7]++;
    else
      a[8]++;
  }
  int color = 0;
  for (int i = 1; i < 9; i++)
    if (a[i] > 0) color++;
  cout << max({color, min({color + a[0], 8})}) << " " << min({color + a[0], 8})
       << endl;
  return 0;
}
