#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  vector<int> colors(9, 0);
  int score;
  for (int i = (0); i < (n); i++) {
    cin >> score;
    score = min(3300, score);
    colors[score / 400]++;
  }
  int ans = 0;
  for (int i = (0); i < (8); i++)
    if (colors[i] > 0) ans++;
  if (ans == 0) {
    cout << int(colors[8]) << ' ' << min(8, colors[8]) << endl;
    return 0;
  }
  cout << ans << ' ';
  ans += min((8 - ans), colors[8]);
  cout << ans << endl;
  return 0;
}
