#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <iomanip>
#include <cstring>
#define rep(i, N) for (int i = 0; i < (int)N; i++)
using namespace std;
typedef long long ll;
const ll LLINF = 9223372036854775807;
const int MOD = 1000000007;

int main() {
  int N; cin >> N;
  int a[N]; rep(i, N) cin >> a[i];
  int rate[9]={};
  rep(i, N) {
    if (a[i] >= 3200) rate[8]++;
    else rate[a[i]/400]++;
  }
  int r_min = 0;
  rep(i, 8) if (rate[i]!=0) r_min++;
  int r_max = r_min + rate[8];
  r_min = max(r_min, 1)
  cout << r_min << " " << r_max << endl;
  return 0;
}