#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int a;
  int ans = 0;
  bool color[8];
  int colorfree = 0;
  for (int i = 0; i < 8; i++) color[i] = false;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a >= 3200) {
      colorfree++;
    } else {
      if (!color[a / 400]) {
        ans++;
        color[a / 400] = true;
      }
    }
  }
  if (colorfree > ans) {
    cout << colorfree << " " << (ans + colorfree) << endl;
    return 0;
  }
  cout << ans << " " << (ans + colorfree) << endl;
  return 0;
}
