#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int N = 1e2 + 7;
const int MOD = 1e9 + 7;
int a[N];
bool b[8];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  int red = 0;
  for (int i = 0; i < n; i++) {
    int cnt = 0, flag = 1;
    for (int j = 0; j < 2799; j += 400) {
      if (j <= a[i] && a[i] < j + 400) {
        b[cnt]++;
        flag = 0;
      }
      cnt++;
    }
    if (flag) red++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i]) ans++;
  }
  int ans2 = (ans + red > 8) ? 8 : ans + red;
  cout << ans << " " << ans2 << endl;
  return 0;
}
