#include <bits/stdc++.h>
using namespace std;
int C[10];
int main() {
  int N, temp, ans = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> temp;
    C[temp / 400]++;
  }
  for (int i = 0; i <= 7; i++) {
    if (C[i] > 0) ans++;
  }
  cout << ans << " " << ans + C[8] << endl;
}
