#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100005], b[100005] = {0};
  cin >> n;
  int cnt[10] = {0};
  for (int i = 1; i <= n; i++) {
    int d;
    cin >> d;
    if (d >= 1 && d <= 399) cnt[1] = 1;
    if (d >= 400 && d <= 799) cnt[2] = 1;
    if (d >= 800 && d <= 1199) cnt[3] = 1;
    if (d >= 1200 && d <= 1599) cnt[4] = 1;
    if (d >= 1600 && d <= 1999) cnt[5] = 1;
    if (d >= 2000 && d <= 2399) cnt[6] = 1;
    if (d >= 2400 && d <= 2799) cnt[7] = 1;
    if (d >= 2800 && d <= 3199) cnt[8] = 1;
    if (d >= 3200) cnt[9]++;
  }
  int max = 0, min = 0;
  for (int i = 1; i <= 8; i++) min += cnt[i];
  max = min + cnt[9];
  cout << min << " " << max;
}
