#include <bits/stdc++.h>
using namespace std;
const int INTINF = 1e9;
const long long LLINF = 1e18;
int color[9];
void solve() {
  int N;
  cin >> N;
  for (int i = 0, i_len = (N); i < i_len; ++i) {
    int a;
    cin >> a;
    color[min(a / 400, 8)]++;
  }
  int ans = 0;
  for (int i = 0, i_len = (8); i < i_len; ++i) {
    ans += (color[i] > 0);
  }
  cout << ans << " " << ans + color[8] << endl;
}
int main(int argc, char const *argv[]) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  std::cout << std::fixed << std::setprecision(10);
  solve();
  return 0;
}
