#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const ll mod = 1e9;
int main() {
  int n;
  cin >> n;
  vector<int> rate(9);
  int a;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200)
      rate[a / 400]++;
    else
      rate[8]++;
  }
  int ans = 0;
  for (int i = 0; i < 9; i++) {
    if (i == 8) {
      cout << ans << ' ' << ans + rate[i] << endl;
    } else if (rate[i] != 0)
      ans++;
  }
  return 0;
}
