#include <bits/stdc++.h>
using namespace std;
using ll = long long;
set<string> c;
map<ll, ll> mp;
const ll inf = 100000000000000000;
const ll mod = 1000000007;
const ll mod2 = 998244353;
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll c, ll d) { return c / gcd(c, d) * d; }
int main() {
  int n;
  cin >> n;
  vector<bool> color(8, false);
  int colorful = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a < 400)
      color[0] = true;
    else if (a < 800)
      color[1] = true;
    else if (a < 1200)
      color[2] = true;
    else if (a < 1600)
      color[3] = true;
    else if (a < 2000)
      color[4] = true;
    else if (a < 2400)
      color[5] = true;
    else if (a < 2800)
      color[6] = true;
    else if (a < 3200)
      color[7] = true;
    else
      colorful++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++)
    if (color[i]) ans++;
  cout << ans << " " << min(ans + colorful, 8) << endl;
}
