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