#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;
const ll LINF = 0x1fffffffffffffff;
const int INF = 0x3fffffff;
const int MOD = 1000000007;
void in() {}
template <class T, class... U>
void in(T &t, U &...u) {
  cin >> t;
  in(u...);
}
void solve();
int main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  solve();
}
void solve() {
  int N;
  in(N);
  vector<int> a(N);
  for (auto &x : (a)) in(x);
  vi m(8);
  int free = 0;
  for (auto &x : (a)) {
    if (x >= 3200) {
      free++;
    } else {
      m[x / 400] = 1;
    }
  }
  int sum = accumulate((m).begin(), (m).end(), 0);
  cout << sum << ' ' << sum + free << endl;
}
