// https://atcoder.jp/contests/

#include <bits/stdc++.h>
#define REP(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define REPR(i, n) for (int(i) = (n); (i) >= 0; (i)--)
#define FOR(i, m, n) for (int(i) = (m); (i) < (n); i++)
#define INF 1e9
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;

ll N, a, mc;
set<ll> c;

int main()
{
  cin >> N;
  REP(i, N)
  {
    cin >> a;
    if (3200 <= a)
      mc++;
    else
      c.insert((ll)(a / 400));
  }

  cout << c.size() << " " << min(8ll, c.size() + mc) << '\n';

  return 0;
}
