#include <bits/stdc++.h>
using namespace std;
long long const MOD = 1000000007;
int N;
int a[100];
int cnt[9];
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) cin >> a[i];
  for (int i = 0; i < N; i++) {
    if (a[i] <= 399)
      cnt[0]++;
    else if (a[i] <= 799)
      cnt[1]++;
    else if (a[i] <= 1199)
      cnt[2]++;
    else if (a[i] <= 1599)
      cnt[3]++;
    else if (a[i] <= 1999)
      cnt[4]++;
    else if (a[i] <= 2399)
      cnt[5]++;
    else if (a[i] <= 2799)
      cnt[6]++;
    else if (a[i] <= 3199)
      cnt[7]++;
    else
      cnt[8]++;
  }
  int mini = 0, maxi = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i] > 0) mini++;
  }
  maxi = mini + cnt[8];
  cout << mini << ' ' << maxi << endl;
}
