#include <bits/stdc++.h>
using namespace std;
const unsigned long long mod = 1000000000 + 7;
int main() {
  int N;
  cin >> N;
  int col[9];
  for (int i = 0; i < (int)9; ++i) col[i] = 0;
  int x;
  for (int i = 0; i < (int)N; ++i) {
    cin >> x;
    col[x / 400]++;
  }
  int res = 0;
  for (int i = 0; i < (int)8; ++i) {
    if (col[i] > 0) res++;
  }
  if (res == 0) {
    cout << 1 << endl;
  } else {
    cout << res << " " << min(res + col[8], 9) << endl;
  }
  return 0;
}
