#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
double pi = 3.1415926535;
int main() {
  int n;
  cin >> n;
  int a, b, c = 0, ans = 0, x[8] = {};
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200)
      x[a / 400]++;
    else
      c++;
  }
  for (int i = 0; i < 8; i++)
    if (x[i] > 0) ans++;
  cout << ans << " ";
  if (ans + c > 8)
    cout << 8 << endl;
  else
    cout << ans + c << endl;
  return 0;
}
