#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<bool> color(9);
  ;
  for (int i = 0; i < (int)(9); i++) color[i] = false;
  int cnt = 0;
  ;
  for (int i = 0; i < (int)(n); i++) {
    int r;
    cin >> r;
    if (r >= 3200) {
      color[8] = true;
      cnt++;
    } else {
      color[r / 400] = true;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) ans++;
  }
  if (ans == 0)
    cout << 1 << " " << min(cnt, 8) << endl;
  else
    cout << ans << " " << min(ans + cnt, 8) << endl;
  return 0;
}
