#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vll = vector<ll>;
using vb = vector<bool>;
using vvb = vector<vector<bool>>;
using vs = vector<string>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using msi = map<string, int>;
template <typename T>
void say(T s) {
  cout << s << "\n";
}
template <typename T>
void say(vector<T> s) {
  auto itr = s.begin();
  cout << *(itr++);
  while (itr != s.end()) {
    cout << " " << *(itr++);
  }
  cout << "\n";
}
void yn(bool b) {
  if (b)
    say("YES");
  else
    say("NO");
}
int c[9];
int main() {
  int N;
  cin >> N;
  ;
  vi a(N);
  for (int i = 0; i < N; ++i) cin >> a[i];
  ;
  for (int x : a) {
    if (x < 400)
      ++c[0];
    else if (x < 800)
      ++c[1];
    else if (x < 1200)
      ++c[2];
    else if (x < 1600)
      ++c[3];
    else if (x < 2000)
      ++c[4];
    else if (x < 2400)
      ++c[5];
    else if (x < 2800)
      ++c[6];
    else if (x < 3200)
      ++c[7];
    else
      ++c[8];
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i)
    if (c[i] > 0) ++ans;
  cout << ans << " ";
  ans += c[8];
  say(ans);
}
