#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll n;
  cin >> n;
  bitset<8> s;
  ll m = 0;
  for (ll i = 0; i < n; i++) {
    ll a;
    cin >> a;
    if (3200 <= a)
      m++;
    else if (2800 <= a)
      s[0] = 1;
    else if (2400 <= a)
      s[1] = 1;
    else if (2000 <= a)
      s[2] = 1;
    else if (1600 <= a)
      s[3] = 1;
    else if (1200 <= a)
      s[4] = 1;
    else if (800 <= a)
      s[5] = 1;
    else if (400 <= a)
      s[6] = 1;
    else if (1 <= a)
      s[7] = 1;
  }
  ll mi = min(max(1ll, (ll)s.count()), 8ll);
  ll ma = min(max(1ll, (ll)s.count() + m), 8ll);
  cout << mi << ' ' << ma << endl;
}
