#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  int a[100];
  int free = 0, ans = 0;
  bool color[8] = {false};
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    if (a[i] >= 3200)
      ++free;
    else
      color[a[i] / 400] = true;
  }
  for (int i = 0; i < 8; ++i)
    if (color[i]) ++ans;
  if (ans == 0)
    cout << "1 " << min(free, 8) << "\n";
  else
    cout << ans << " " << min(ans + free, 8) << "\n";
  return 0;
}
