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