#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
signed main() {
  int N;
  int cnt[13] = {0};
  int a;
  cin >> N;
  for (int i = 0; i < (int)N; i++) {
    cin >> a;
    cnt[a / 400]++;
  }
  int c1 = 0;
  for (int i = 0; i < (int)8; i++) {
    c1 += (cnt[i] > 0 ? 1 : 0);
  }
  int c2 = 0;
  for (int i = 8; i < (int)13; i++) {
    c2 += cnt[i];
  }
  cout << (c1 == 0 && c2 > 0 ? 1 : 0) << " " << c1 + c2 << endl;
}
