#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, c, ans = 0;
  int clr[8], r = 0;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> c;
    for (j = 0; j < 8; j++) {
      if (c / 400 == j) clr[j] = 1;
    }
    if (c / 400 >= 8) r = 1;
  }
  for (i = 0; i < 8; i++) {
    ans += clr[i];
  }
  if (r == 0)
    cout << ans << " " << ans << endl;
  else if (r == 1 && 8 - ans > 2)
    cout << ans << " " << ans + 2 << endl;
  else if (r == 1 && 8 - ans == 1)
    cout << ans << " " << ans + 1 << endl;
  else
    cout << ans << " " << 8 << endl;
  return 0;
}
