#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int cnt = 0, colors[8] = {};
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      cnt++;
    else {
      colors[a / 400] = 1;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    ans += colors[i];
  }
  cout << max(ans, 1) << " " << min(ans + cnt, 8) << endl;
}
