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