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