#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n, mn, mx, temp, count = 0;
  cin >> n;
  vector<int> def(8, 0);
  for (int i = 0; i < n; i++) {
    cin >> temp;
    if (temp >= 1 && temp <= 399)
      def[0] = 1;
    else if (temp >= 400 && temp <= 799)
      def[1] = 1;
    else if (temp >= 800 && temp <= 1199)
      def[2] = 1;
    else if (temp >= 1200 && temp <= 1599)
      def[3] = 1;
    else if (temp >= 1600 && temp <= 1999)
      def[4] = 1;
    else if (temp >= 2000 && temp <= 2399)
      def[5] = 1;
    else if (temp >= 2400 && temp <= 2799)
      def[6] = 1;
    else if (temp >= 2800 && temp <= 3199)
      def[7] = 1;
    else
      count++;
  }
  mn = 0;
  for (int i = 0; i < 8; i++) mn += def[i];
  mx = mn + count;
  if (!mn && count) mn++;
  cout << mn << " " << mn + count << endl;
  return 0;
}
