#include <bits/stdc++.h>
using namespace std;
int k[10], t, N, a;
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (1 <= a && a <= 399) k[0]++;
    if (400 <= a && a <= 799) k[1]++;
    if (800 <= a && a <= 1199) k[2]++;
    if (1200 <= a && a <= 1599) k[3]++;
    if (1600 <= a && a <= 1999) k[4]++;
    if (2000 <= a && a <= 2399) k[5]++;
    if (2400 <= a && a <= 2799) k[6]++;
    if (2800 <= a && a <= 3199) k[7]++;
    if (3200 <= a) t++;
  }
  int ans1 = 0, ans2;
  for (int i = 0; i < 8; i++)
    if (k[i] > 0) ans1++;
  ans2 = min(ans1 + t, 8);
  cout << ans1 << ' ' << ans2 << endl;
  return 0;
}
