#include <bits/stdc++.h>
using namespace std;
int dy[] = {0, 0, 1, -1};
int dx[] = {1, -1, 0, 0};
const int MOD = 1000000007;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> va(9, 0);
  int a;
  int over3200 = 0;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a < 3200)
      va[a / 400]++;
    else
      over3200++;
  }
  int ans = 0;
  for (int i = 0; i < 9; i++) {
    if (va[i] != 0) ans++;
  }
  cout << ans << ' ' << ans + over3200 << endl;
}
