#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
int main(void) {
  int N, count = 0, ans = 0;
  cin >> N;
  bool check[8];
  for (int i = 0; i < 8; ++i) check[i] = false;
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    if (a <= 399)
      check[0] = true;
    else if (a <= 799)
      check[1] = true;
    else if (a <= 1199)
      check[2] = true;
    else if (a <= 1599)
      check[3] = true;
    else if (a <= 1999)
      check[4] = true;
    else if (a <= 2399)
      check[5] = true;
    else if (a <= 2799)
      check[6] = true;
    else if (a <= 3199)
      check[7] = true;
    else
      count++;
  }
  for (int i = 0; i < 8; ++i)
    if (check[i]) ans++;
  cout << ans << " " << ans + count << endl;
  return 0;
}
