#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, ans = 0, a, count[11] = {}, b = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a < 3200)
      count[a / 400] += 1;
    else
      b += 1;
  }
  for (int i = 0; i <= 7; i++) {
    if (count[i] != 0) ans += 1;
  }
  if (b != 0)
    cout << ans << ' ' << ans + b << endl;
  else
    cout << ans << ' ' << ans << endl;
}
