#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> data(9);
  int a;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a <= 399)
      data.at(0)++;
    else if (a <= 799)
      data.at(1)++;
    else if (a <= 1199)
      data.at(2)++;
    else if (a <= 1599)
      data.at(3)++;
    else if (a <= 1999)
      data.at(4)++;
    else if (a <= 2399)
      data.at(5)++;
    else if (a <= 2799)
      data.at(6)++;
    else if (a <= 3199)
      data.at(7)++;
    else
      data.at(8)++;
  }
  int base = 0;
  for (int i = 0; i < 8; i++) {
    if (data.at(i) != 0) base++;
  }
  cout << max(base, 1) << min(base + data.at(8), 8) << endl;
  return 0;
}
