#include <bits/stdc++.h>
using namespace std;
int a[101];
int col[8];
int main() {
  int n, ai;
  cin >> n;
  int rcnt = 0;
  for (int i = (0); i < (n); ++i) {
    cin >> ai;
    if (ai <= 399)
      col[0]++;
    else if (ai <= 799)
      col[1]++;
    else if (ai <= 1199)
      col[2]++;
    else if (ai <= 1599)
      col[3]++;
    else if (ai <= 1999)
      col[4]++;
    else if (ai <= 2399)
      col[5]++;
    else if (ai <= 2799)
      col[6]++;
    else if (ai <= 3199)
      col[7]++;
    else
      rcnt++;
  }
  int cnt = 0;
  for (int i = (0); i < (8); ++i) {
    if (col[i] >= 1) ++cnt;
  }
  cout << cnt << " " << cnt + rcnt << endl;
  return 0;
}
