#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> r(8, 0);
  int ans1 = 0;
  for (int(i) = 0; (i) < (n); (i)++) {
    int a;
    cin >> a;
    if (a >= 3200)
      ans1++;
    else
      r[a / 400]++;
  }
  int ans2 = 0;
  for (int(i) = 0; (i) < (8); (i)++) {
    if (r[i] != 0) ans2++;
  }
  cout << ans2 << " " << ans1 + ans2 << endl;
  return 0;
}
