#include <bits/stdc++.h>
using namespace std;
bool a[8];
int main() {
  int n;
  scanf("%d", &n);
  memset(a, false, sizeof(a));
  int ans = 0;
  for (int i = 0; i < n; i++) {
    int temp;
    scanf("%d", &temp);
    if (temp < 400)
      a[0] = true;
    else if (temp < 800)
      a[1] = true;
    else if (temp < 1200)
      a[2] = true;
    else if (temp < 1600)
      a[3] = true;
    else if (temp < 2000)
      a[4] = true;
    else if (temp < 2400)
      a[5] = true;
    else if (temp < 2800)
      a[6] = true;
    else if (temp < 3200)
      a[7] = true;
    else
      ans++;
  }
  int x = 0;
  for (int i = 0; i < 8; i++)
    if (a[i]) x++;
  printf("%d %d\n", x, x + ans);
}
