#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for(ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(c) (c).begin(), (c).end()
#define pb push_back
#define hina cout << ' '
#define in(n) cin >> n
#define in2(n, m) cin >> n >> m
#define in3(n, m, l) cin >> n >> m >> l
#define out(n) cout << n
const ll mei = (ll)1e9 + 7;

int main(){
  ll a, b, c, d, e, f, g, h, n, k, m;
  a = 0;
  b = 0;
  c = 0;
  d = 0;
  e = 0;
  f = 0;
  g = 0;
  h = 0;
  k = 0;
  in(n);
  rep(i, n){
    in(m);
    if(m < 400)
      a = 1;
    else if(m < 800)
      b = 1;
    else if(m < 1200)
      c = 1;
    else if(m < 1600)
      d = 1;
    else if(m < 2000)
      e = 1;
    else if(m < 2400)
      f = 1;
    else if(m < 2800)
      g = 1;
    else if(m < 3200)
      h = 1;
    else
      k = 1;
  }
  if(k >= 1){
    out(min(a + b + c + d + e + f + g + h + k));
    hina;
    out(max(1ll, a + b + c + d + e + f + g + h));
    memi;
  }
  else{
    out(a + b + c + d + e + f + g + h);
    hina;
    out(a + b + c + d + e + f + g + h);
    memi;
  }
}
