#include <bits/stdc++.h>
using namespace std;
int a[30] = {0}, n, m;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> m;
    if (1 <= m && m <= 399)
      a[1]++;
    else if (400 <= m && m <= 799)
      a[2]++;
    else if (800 <= m && m <= 1199)
      a[3]++;
    else if (1200 <= m && m <= 1599)
      a[4]++;
    else if (1600 <= m && m <= 1999)
      a[5]++;
    else if (2000 <= m && m <= 2399)
      a[6]++;
    else if (2400 <= m && m <= 2799)
      a[7]++;
    else if (2800 <= m && m <= 3199)
      a[8]++;
    else
      a[9]++;
  }
  long long sum = 0;
  for (int i = 1; i <= 8; i++) {
    if (a[i]) sum++;
  }
  cout << sum << ' ' << sum + a[9] << endl;
  return 0;
}
