#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  int n, i;
  cin >> n;
  bool ar[8];
  memset(ar, false, sizeof(ar));
  int j = 0;
  for (i = 0; i < n; i++) {
    int x;
    cin >> x;
    if (x >= 1 && x <= 399)
      ar[0] = 1;
    else if (x >= 400 && x <= 799)
      ar[1] = 1;
    else if (x >= 800 && x <= 1199)
      ar[2] = 1;
    else if (x >= 1200 && x <= 1599)
      ar[3] = 1;
    else if (x >= 1600 && x <= 1999)
      ar[4] = 1;
    else if (x >= 2000 && x <= 2399)
      ar[5] = 1;
    else if (x >= 2400 && x <= 2799)
      ar[6] = 1;
    else if (x >= 2800 && x <= 3199)
      ar[7] = 1;
    else
      j++;
  }
  int ans = 0;
  for (i = 0; i < 8; i++) ans += ar[i];
  cout << ans << " " << ans + j;
  return 0;
}
