#include <bits/stdc++.h>
using namespace std;
int N;
int rate[8];
int unq_low;
int cnt_high;
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 400)
      rate[0]++;
    else if (a < 800)
      rate[1]++;
    else if (a < 1200)
      rate[2]++;
    else if (a < 1600)
      rate[3]++;
    else if (a < 2000)
      rate[4]++;
    else if (a < 2400)
      rate[5]++;
    else if (a < 2800)
      rate[6]++;
    else if (a < 3200)
      rate[7]++;
    else
      cnt_high++;
  }
  for (int i = 0; i < 8; i++)
    if (rate[i] != 0) unq_low++;
  cout << max(unq_low, 1) << " " << min(unq_low + cnt_high, 8) << endl;
  return 0;
}
