#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n, temp;
  cin >> n;
  int ans = 0;
  int arr[8];
  for (int i = 0; i < 8; i++) arr[i] = 0;
  while (n--) {
    cin >> temp;
    if (temp >= 1 && temp <= 399) {
      if (arr[0] == 0) arr[0] = 1;
    } else if (temp >= 400 && temp <= 799) {
      if (arr[1] == 0) arr[1] = 1;
    } else if (temp >= 800 && temp <= 1199) {
      if (arr[2] == 0) arr[2] = 1;
    } else if (temp >= 1200 && temp <= 1599) {
      if (arr[3] == 0) arr[3] = 1;
    } else if (temp >= 1600 && temp <= 1999) {
      if (arr[4] == 0) arr[4] = 1;
    } else if (temp >= 2000 && temp <= 2399) {
      if (arr[5] == 0) arr[5] = 1;
    } else if (temp >= 2400 && temp <= 2799) {
      if (arr[6] == 0) arr[6] = 1;
    } else if (temp >= 2800 && temp <= 3199) {
      if (arr[7] == 0) arr[7] = 1;
    } else if (temp >= 3200)
      ans++;
  }
  int val = 0;
  for (int i = 0; i < 8; i++) val += arr[i];
  int min = val;
  int max = val + ans;
  cout << min << ' ' << max << endl;
  return 0;
}
