#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, a;
  vector<bool> c(8);
  int mor = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a >= 3200)
      mor++;
    else if (a >= 2800)
      c[7] = true;
    else if (a >= 2400)
      c[6] = true;
    else if (a >= 2000)
      c[5] = true;
    else if (a >= 1600)
      c[4] = true;
    else if (a >= 1200)
      c[3] = true;
    else if (a >= 800)
      c[2] = true;
    else if (a >= 400)
      c[1] = true;
    else
      c[0] = true;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++)
    if (c[i]) ans++;
  cout << ans << ' ' << min(ans + mor, 8);
}
