#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int color[8] = {};
  int cnt = 0;
  int ans = 0;
  int x;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x >= 3200) {
      cnt++;
    } else if (color[x / 400] == 0) {
      ans++;
    }
  }
  cout << ans << " " << ans + cnt << endl;
  return 0;
}
