#include <bits/stdc++.h>
const int inf = INT_MAX;
const int nmax = 1e5 + 5;
const int mod = 1e9 + 7;
using namespace std;
int n, i, x, mn, mx, a[5000], j, b[101];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cerr.tie(0);
  cout.tie(0);
  cin >> n;
  for (i = 1; i <= n; i++) cin >> b[i];
  for (i = 1; i <= n; i++) {
    x = b[i];
    if (!a[x] && x <= 3199) {
      mn++, mx++;
      if (x <= 399)
        for (j = 1; j <= 399; j++) a[j] = 1;
      else if (x >= 400 && x <= 799)
        for (j = 400; j <= 799; j++) a[j] = 1;
      else if (x >= 800 && x <= 1199)
        for (j = 800; j <= 1199; j++) a[j] = 1;
      else if (x >= 1200 && x <= 1599)
        for (j = 1200; j <= 1599; j++) a[j] = 1;
      else if (x >= 1600 && x <= 1999)
        for (j = 1600; j <= 1999; j++) a[j] = 1;
      else if (x >= 2000 && x <= 2399)
        for (j = 2000; j <= 2399; j++) a[j] = 1;
      else if (x >= 2400 && x <= 2799)
        for (j = 2400; j <= 2799; j++) a[j] = 1;
      else
        for (j = 2800; j <= 3199; j++) a[j] = 1;
    } else if (x >= 3200) {
      for (j = 1; j <= 2801; j += 400)
        if (!a[j]) {
          mx++;
          int tmp = j;
          for (j--; j <= tmp + 398; j++) a[j] = 1;
          break;
        }
    }
  }
  cout << mn << " " << mx << endl;
  return 0;
}
