#include <bits/stdc++.h>
using namespace std;
int a[110], cnt[10];
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    cnt[min(x, 3200) / 400]++;
  }
  int m = 0;
  for (int i = 0; i < 8; i++) m += cnt[i] > 0;
  cout << m << " " << m + cnt[8] << endl;
}
