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