#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
#define INF 1000000000000000000

int main(){
  int N;
  cin >> N;
  vector<int> A(N);
  vector<int> B(9, 0);
  rep(i, N){
    cin >> A[i];
    if (A[i] <= 399) B[0] = 1;
    else if (A[i] <= 799) B[1] = 1;
    else if (A[i] <= 1199) B[2] = 1;
    else if (A[i] <= 1599) B[3] = 1;
    else if (A[i] <= 1999) B[4] = 1;
    else if (A[i] <= 2399) B[5] = 1;
    else if (A[i] <= 2799) B[6] = 1;
    else if (A[i] <= 3199) B[7] = 1;
    else B[8]++;
  }
  
  int sum = 0;
  rep(i, 8){
    sum += B[i];
  }
  int min_sum;
  if (sum >= 1) min_sum = sum;
  else min_sum = 1;
  sum += B[8];
  cout << min_sum << " " << sum << endl;
  
  
