#include <bits/stdc++.h>
using namespace std;
int n;
int a[101];
int num[23];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
    if (a[i] <= 399) num[1]++;
    if (a[i] > 399 && a[i] <= 799) num[2]++;
    if (a[i] > 799 && a[i] <= 1199) num[3]++;
    if (a[i] > 1199 && a[i] <= 1599) num[4]++;
    if (a[i] > 1599 && a[i] <= 1999) num[5]++;
    if (a[i] > 1999 && a[i] <= 2399) num[6]++;
    if (a[i] > 2399 && a[i] <= 2799) num[7]++;
    if (a[i] > 2799 && a[i] <= 3199) num[8]++;
    if (a[i] > 3199) num[9]++;
  }
  int ans = 0;
  for (int i = 1; i <= 8; i++) {
    if (num[i]) ans++;
  }
  cout << ans << " ";
  if (num[9] == 0) {
    cout << ans;
  } else {
    cout << num[9] + ans;
  }
  return 0;
}
