#include <bits/stdc++.h>
using namespace std;
int n;
bool vis[10];
int main() {
  while (~scanf("%d", &n)) {
    int cnt = 0;
    for (int i = 1; i <= n; i++) {
      int a;
      scanf("%d", &a);
      for (int i = 1; i <= 8; i++) {
        if (a >= (i - 1) * 400 && a < i * 400) {
          vis[i] = true;
          break;
        }
      }
      if (a >= 3200) cnt++;
    }
    int ans = 0;
    for (int i = 1; i <= 8; i++)
      if (vis[i]) ans++;
    int Min, Max;
    Min = ans;
    if (ans == 0) Min = 1;
    Max = min(8, ans + cnt);
    printf("%d %d\n", Min, Max);
    memset(vis, 0, sizeof(vis));
  }
  return 0;
}
