#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> exist(9, 0);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    int b = a / 400;
    if (a >= 3200)
      exist[8]++;
    else
      exist[b]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (exist[i] > 0) ans++;
  }
  cout << ans << " " << min(ans + exist[8], 8) << endl;
}
