#include <bits/stdc++.h>
using namespace std;
int cnt[10];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    if (x < 3200)
      cnt[x / 400 + 1]++;
    else
      cnt[0]++;
  }
  int cnt2 = 0;
  for (int i = 1; i <= 8; i++) {
    if (cnt[i]) cnt2++;
  }
  cout << cnt2 << " " << cnt2 + cnt[0] << endl;
  return 0;
}
