#include <bits/stdc++.h>
using namespace std;
bool Existence[8] = {false, false, false, false, false, false, false, false};
int main() {
  int N;
  cin >> N;
  int score;
  int highrater = 0;
  for (int i = 0; i < N; i++) {
    cin >> score;
    score /= 400;
    if (score < 8) Existence[score] = true;
    if (score >= 8) highrater++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (Existence[i]) ans++;
  }
  cout << ans << " " << ans + highrater;
  return 0;
}
