#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using Graph = vector<vector<int>>;
const int INF = 1e9 + 1;
const ll LLINF = 1e18;
const int MOD = 1e9 + 7;
int main() {
  int N;
  cin >> N;
  vector<int> b(9);
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    b[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) ans += (b[i] > 0);
  cout << ans << " " << ans + b[8] << endl;
  return 0;
}
