#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool c[9] = {false};
  int cnt = 0, ans = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    c[a / 400] = true;
    if (a >= 3200) cnt++;
  }
  for (int i = 0; i < 8; i++) {
    if (c[i]) ans++;
  }
  cout << ans << " " << ans + cnt << endl;
}
