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