#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<int> vec = {399, 799, 1199, 1599, 1999, 2399, 2799, 3199, 4800};
  vector<int> mp(9, 0);
  int a;
  int add = 0;
  for (int i = 0; i < n; i++) {
    cin >> a;
    for (int i = 0; i < 9; i++) {
      if (i == 8) {
        add++;
        break;
      }
      if (a <= vec[i]) {
        mp[i] = 1;
        break;
      }
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) ans += mp[i];
  cout << ans << " " << ans + add;
}
