#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using Graph = vector<vector<ll>>;
constexpr int INF = 0x3f3f3f3f;
const long long mod = 1e9 + 7;
const long double PI = acos(-1);
int main() {
  int n, uni = 0;
  cin >> n;
  map<int, int> t;
  for (ll i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 1 && a <= 399)
      t[1]++;
    else if (a >= 400 && a <= 799)
      t[2]++;
    else if (a >= 800 && a <= 1199)
      t[3]++;
    else if (a >= 1200 && a <= 1599)
      t[4]++;
    else if (a >= 1600 && a <= 1999)
      t[5]++;
    else if (a >= 2000 && a <= 2399)
      t[6]++;
    else if (a >= 2400 && a <= 2799)
      t[7]++;
    else if (a >= 2800 && a <= 3199)
      t[8]++;
    else
      uni++;
  }
  int ans = 0, ans1;
  for (auto x : t) {
    if (x.second > 0) {
      ans++;
    }
  }
  ans1 = min(8, ans + uni);
  cout << ans << " " << ans1 << endl;
  return 0;
}
