#include <bits/stdc++.h>
using namespace std;
int N, tmp;
bool OK[8];
int red = 0;
int ans = 0;
int main() {
  cin >> N;
  for (int((i)) = (0); ((i)) < ((N)); ((i))++) {
    cin >> tmp;
    tmp /= 400;
    if (tmp > 7)
      red++;
    else
      OK[tmp] = true;
  }
  for (int((i)) = (0); ((i)) < ((8)); ((i))++)
    if (OK[i]) ans++;
  cout << max(ans, 1) << " " << min(ans + red, 7) << endl;
  cin >> ans;
  return 0;
}
