#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int main() {
  int N;
  int cnt[9];
  for (int i = 0; i < 9; i++) cnt[i] = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 400)
      cnt[0]++;
    else if (a < 800)
      cnt[1]++;
    else if (a < 1200)
      cnt[2]++;
    else if (a < 1600)
      cnt[3]++;
    else if (a < 2000)
      cnt[4]++;
    else if (a < 2400)
      cnt[5]++;
    else if (a < 2800)
      cnt[6]++;
    else if (a < 3200)
      cnt[7]++;
    else
      cnt[8]++;
  }
  int c = 0, d = 0;
  for (int i = 0; i <= 7; i++) {
    if (cnt[i] == 0)
      d++;
    else
      c++;
  }
  d -= cnt[8];
  if (d < 0) d = 0;
  cout << (c > 0 ? c : 1) << ' ' << (8 - d) << endl;
  return 0;
}
