#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  int rate[9];
  for (int i = 0; i < 9; i++) rate[i] = 0;
  int sum = 0, add = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      rate[0]++;
      add++;
    } else if (a >= 2800)
      rate[1]++;
    else if (a >= 2400)
      rate[2]++;
    else if (a >= 2000)
      rate[3]++;
    else if (a >= 1600)
      rate[4]++;
    else if (a >= 1200)
      rate[5]++;
    else if (a >= 800)
      rate[6]++;
    else if (a >= 400)
      rate[7]++;
    else
      rate[8]++;
  }
  for (int i = 0; i < 9; i++)
    if (i != 0 && rate[i] > 0) sum++;
  cout << sum << " " << sum + add << endl;
}
