#include <bits/stdc++.h>
using namespace std;
constexpr int INF = 1e9 + 7;
constexpr int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
int main() {
  int N;
  cin >> N;
  int cnt[9];
  for (int i = (0); i < (9); ++i) cnt[i] = 0;
  for (int i = (0); i < (N); ++i) {
    int a;
    cin >> a;
    cnt[a / 400]++;
  }
  int ans = 0;
  for (int i = (0); i < (8); ++i)
    if (cnt[i] > 0) ans++;
  cout << ans << " ";
  ans += cnt[8];
  cout << ans << endl;
}
