#include <bits/stdc++.h>
using namespace std;
const int N = 18;
const int mod = 1e9 + 7;
int main() {
  int cnt[20] = {0};
  int n, res = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    if (x < 3200)
      cnt[x / 400]++;
    else
      res++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++)
    if (cnt[i]) ans++;
  cout << ans << " " << min(ans + res, 8) << endl;
  return 0;
}
