#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long INFLL = 1e18;
int dx[4] = {0, -1, 1, 0}, dy[4] = {-1, 0, 0, 1};
int main() {
  ios::sync_with_stdio(false);
  set<int> colors;
  int free_color = 0;
  int N;
  cin >> N;
  for (int j = 0; j < (int)(N); j++) {
    int A;
    cin >> A;
    if (A >= 3200)
      free_color++;
    else {
      for (int i = 1;; i++) {
        if (A < 400 * (i + 1)) {
          colors.insert(i);
          break;
        }
      }
    }
  }
  int max_num = colors.size() + free_color;
  int min_num = max(1, (int)colors.size());
  cout << min_num << " " << max_num << endl;
}
