#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vin = vector<int>;
const int inf = 1e9 + 7;
const ll INF = 1e18;
int main() {
  int n;
  cin >> n;
  vin a(n);
  for (int i = 0; i < (n); i++) cin >> a[i];
  vector<bool> b(8, false);
  int ans = 0;
  int cnt = 0;
  for (int i = 0; i < (n); i++) {
    for (int j = 0; j < (8); j++) {
      if (a[i] >= 3200) {
        cnt++;
        break;
      } else if (a[i] / 400 == j) {
        b[j] = true;
      }
    }
  }
  for (int i = 0; i < (8); i++) {
    if (b[i]) ans++;
  }
  if (ans == 0) ans++;
  cout << ans << " " << ans + cnt << endl;
}
