#include <bits/stdc++.h>
using namespace std;
const long long INF = 1000000007;
int main() {
  int N;
  cin >> N;
  int A[8] = {};
  int ext = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a <= 399)
      A[0]++;
    else if (a <= 799)
      A[1]++;
    else if (a <= 1199)
      A[2]++;
    else if (a <= 1599)
      A[3]++;
    else if (a <= 1999)
      A[4]++;
    else if (a <= 2399)
      A[5]++;
    else if (a <= 2799)
      A[6]++;
    else if (a <= 3199)
      A[7]++;
    else
      ext++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (A[i] != 0) ans++;
  }
  cout << ans << " " << ans + ext << endl;
  return 0;
}
