#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int main() {
  int over = 0;
  int count[8] = {0};
  int ans = 0;
  int N, a;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a >= 3200)
      over++;
    else
      count[a / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (count[i] != 0) ans++;
  }
  if (ans == 0)
    cout << 1 << " ";
  else
    cout << ans << " ";
  ans = 1;
  over--;
  for (int i = 0; i < 8; i++) {
    if (count[i] != 0)
      ans++;
    else if (over > 0) {
      ans++;
      over--;
    }
  }
  cout << ans << endl;
}
