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