#include <bits/stdc++.h>
using namespace std;
const int DIM = 1e2 + 5;
int arr[DIM];
int main(void) {
  int n;
  cin >> n;
  int ans = 0, cnt = 0;
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    if (x >= 3200)
      cnt++;
    else {
      if (arr[x / 400] == 0) ans++;
      arr[x / 400] = 1;
    }
  }
  if (cnt == n)
    cout << 1 << " ";
  else
    cout << ans << " ";
  cout << min(8, ans + cnt);
  return 0;
}
