#include <bits/stdc++.h>
using namespace std;
int dx4[4] = {1, 0, -1, 0};
int dy4[4] = {0, -1, 0, 1};
int dx8[8] = {1, 0, -1, 1, -1, 1, 0, -1};
int dy8[8] = {1, 1, 1, 0, 0, -1, -1, -1};
const int INF = 1e9;
const long long LLINF = 1e18;
const int MAX_V = 1e6 + 1;
const long long mod = 1000000007;
int n;
int a[100];
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cin >> n;
  bool check[8];
  fill(check, check + 8, false);
  int ans = 0;
  int sum = 0;
  for (int i = 0; i < (int)(n); i++) {
    cin >> a[i];
    if (1 <= a[i] && a[i] <= 399) {
      if (check[0]) continue;
      ans++;
      check[0] = true;
    } else if (400 <= a[i] && a[i] <= 799) {
      if (check[1]) continue;
      ans++;
      check[1] = true;
    } else if (800 <= a[i] && a[i] <= 1199) {
      if (check[2]) continue;
      ans++;
      check[2] = true;
    } else if (1200 <= a[i] && a[i] <= 1599) {
      if (check[3]) continue;
      ans++;
      check[3] = true;
    } else if (1600 <= a[i] && a[i] <= 1999) {
      if (check[4]) continue;
      ans++;
      check[4] = true;
    } else if (2000 <= a[i] && a[i] <= 2399) {
      if (check[5]) continue;
      ans++;
      check[5] = true;
    } else if (2400 <= a[i] && a[i] <= 2799) {
      if (check[6]) continue;
      ans++;
      check[6] = true;
    } else if (2800 <= a[i] && a[i] <= 3199) {
      if (check[7]) continue;
      ans++;
      check[7] = true;
    } else {
      sum++;
    }
  }
  cout << ans << " ";
  cout << min(ans + sum, 8) << endl;
}
