#include <bits/stdc++.h>
using namespace std;
using lli = long long int;
using ulli = unsigned long long int;
bool col[8] = {};
int ans = 0;
int N, a, MAX;
int ov = 0;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a > 3199) {
      ov++;
    } else if (!(col[a / 400])) {
      col[a / 400] = true;
      ans++;
    }
  }
  MAX = ans + ov;
  if (MAX > 8) MAX = 8;
  if (ans == 0) ans++;
  cout << ans << " " << MAX;
  return 0;
}
