#include <bits/stdc++.h>
using namespace std;
void execute() {
  int N;
  cin >> N;
  vector<bool> color(8, false);
  int rainbow = 0;
  int ans = 0;
  for (int i = 0; i < N; i++) {
    int tmp;
    cin >> tmp;
    if (3200 <= tmp)
      rainbow++;
    else
      color[tmp / 400] = true;
  }
  for (int i = 0; i < 8; i++) {
    if (color[i]) ans++;
  }
  cout << max(1, ans) << " " << min(ans + rainbow, 8) << endl;
  return;
}
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  std::cout << std::fixed << std::setprecision(15);
  execute();
  int stop;
  cin >> stop;
  return 0;
}
