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