#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int col[8] = {0};
  int red = 0;
  for (int i = 0; i < (n); i++) {
    int a;
    cin >> a;
    if (a / 400 >= 8)
      red++;
    else
      col[a / 400] = 1;
  }
  int ans = 0;
  for (int i = 0; i < (8); i++) ans += col[i];
  cout << ans << " " << ans + red << endl;
  return 0;
}
