#include <bits/stdc++.h>
using namespace std;
long long max(long long a, long long b) { return (a > b) ? a : b; }
long long min(long long a, long long b) { return (a < b) ? a : b; }
long long INFL = 1000000000000000010;
int INF = 1000000000;
long long MOD = 1000000007;
int main() {
  int N;
  cin >> N;
  vector<int> S(20);
  for (long long i = 0; i < N; i++) {
    int a;
    cin >> a;
    S[a / 400]++;
  }
  long long ans = 0;
  long long m = 0;
  for (long long i = 0; i < 7; i++) {
    ans += (S[i] > 0);
  }
  m = ans;
  for (int i = 7; i < 20; i++) {
    ans += S[i];
  }
  cout << min(m, 1) << endl;
  cout << ans << endl;
}
