#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n, cnt = 0, cnt2 = 0, memo = 0;
  bool is_exist[8] = {false};
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> memo;
    if (memo >= 3200)
      cnt++;
    else {
      is_exist[memo / 400] = true;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (is_exist[i]) cnt2++;
  }
  cout << cnt2 << " " << cnt + cnt2 << endl;
  return 0;
}
