#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int count = 0;
  vector<int> A(9);
  for (int i = 0; i < N; i++) {
    int m;
    cin >> m;
    if (1 <= m && m <= 399) A[0]++;
    if (400 <= m && m <= 799) A[1]++;
    if (800 <= m && m <= 1199) A[2]++;
    if (1200 <= m && m <= 1599) A[3]++;
    if (1600 <= m && m <= 1999) A[4]++;
    if (2000 <= m && m <= 2399) A[5]++;
    if (2400 <= m && m <= 2799) A[6]++;
    if (2800 <= m && m <= 3199) A[7]++;
    if (3200 <= m) A[8]++;
  }
  for (int i = 0; i < 8; i++) {
    if (A[i] > 0) count++;
  }
  cout << count << ' ' << count + A[8] << endl;
}
