#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(8, 0);
  int count = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 400)
      v[0]++;
    else if (a < 800)
      v[1]++;
    else if (a < 1200)
      v[2]++;
    else if (a < 1600)
      v[3]++;
    else if (a < 2000)
      v[4]++;
    else if (a < 2400)
      v[5]++;
    else if (a < 2800)
      v[6]++;
    else if (a < 3200)
      v[7]++;
    else
      count++;
  }
  int current1 = 0;
  for (int x : v)
    if (x == 1) current1++;
  if (current1 == 0)
    cout << 1;
  else
    cout << current1;
  cout << " " << current1 + count;
}
