#include <bits/stdc++.h>
using namespace std;
int color[9] = {0};
int main() {
  int N, a;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> a;
    ++color[a / 400];
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) {
    ans += (color[i] > 0);
  }
  cout << ans + (ans == 0) << " " << ans + color[8] << endl;
}
