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