#include <bits/stdc++.h>
long long const MOD = 1e9 + 7;
long long const INF = 1e18;
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<bool> rank(8, false);
  int pro = 0;
  for (int(i) = 0; (i) < (n); (i)++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      pro++;
    } else {
      rank[a / 400] = true;
    }
  }
  int ans = 0;
  for (auto i : rank) {
    if (i) {
      ans++;
    }
  }
  cout << ans << " " << ans + pro << endl;
  return 0;
}
