#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using P = pair<int, int>;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < (int)(N); i++) cin >> a[i];
  vector<bool> col(10);
  int free = 0;
  for (int i = 0; i < (int)(N); i++) {
    if (a[i] < 3200)
      col[a[i] / 400] = true;
    else
      free++;
  }
  int ans1 = 0, ans2 = 0;
  for (int i = 0; i < (int)(10); i++)
    if (col[i]) ans1++;
  ans2 = ans1 + free;
  cout << ans1 << " " << ans2 << endl;
  return 0;
}
