#include <bits/stdc++.h>
using namespace std;
int main() {
  bool jud[8] = {0};
  int n;
  cin >> n;
  int num = 0;
  int ans = 0;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    int flag;
    if (1 <= a && a <= 399) {
      flag = 0;
    } else if (400 <= a && a <= 799) {
      flag = 1;
    } else if (800 <= a && a <= 1199) {
      flag = 2;
    } else if (1200 <= a && a <= 1599) {
      flag = 3;
    } else if (1600 <= a && a <= 1999) {
      flag = 4;
    } else if (2000 <= a && a <= 2399) {
      flag = 5;
    } else if (2400 <= a && a <= 2799) {
      flag = 6;
    } else if (2800 <= a && a <= 3199) {
      flag = 7;
    } else {
      ++num;
      continue;
    }
    if (!jud[flag]) {
      jud[flag] = 1;
      ++ans;
    }
  }
  cout << (ans ? ans : 1) << " " << min(8, ans + num) << endl;
  return 0;
}
