#include <bits/stdc++.h>
using namespace std;
long long color[9];
inline void solve() {
  long long n, a, ans = 0, other = 0;
  cin >> n;
  while (n--) {
    cin >> a;
    if (a >= 3200)
      other++;
    else if (a >= 2800)
      color[8] = 1;
    else if (a >= 2400)
      color[7] = 1;
    else if (a >= 2000)
      color[6] = 1;
    else if (a >= 1600)
      color[5] = 1;
    else if (a >= 1200)
      color[4] = 1;
    else if (a >= 800)
      color[3] = 1;
    else if (a >= 400)
      color[2] = 1;
    else
      color[1] = 1;
  }
  for (long long i = 1; i <= 8; i++)
    if (color[i]) ans++;
  if (ans == 0) ans = 1;
  cout << ans << " " << ans + other << endl;
  return;
}
signed main() {
  long long n = 1;
  while (n--) solve();
  return 0;
}
