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