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