#include <bits/stdc++.h>
long long power(long long base, long long exp) {
  long long res = 1;
  while (exp > 0) {
    if (exp % 2 == 1) res = (res * base);
    base = (base * base);
    exp /= 2;
  }
  return res;
}
long long mod(long long a, long long b) { return (a % b + b) % b; }
long long powerm(long long base, long long exp, long long mod) {
  long long ans = 1;
  while (exp) {
    if (exp & 1) ans = (ans * base) % mod;
    exp >>= 1, base = (base * base) % mod;
  }
  return ans;
}
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  long long arr[n];
  for (long long i = 0; i < n; i++) cin >> arr[i];
  unordered_map<long long, long long> mp;
  long long others = 0;
  for (long long i = 0; i < n; i++) {
    if (arr[i] >= 1 && arr[i] <= 399)
      mp[0]++;
    else if (arr[i] >= 400 && arr[i] <= 799)
      mp[1]++;
    else if (arr[i] >= 800 && arr[i] <= 1199)
      mp[2]++;
    else if (arr[i] >= 1200 && arr[i] <= 1599)
      mp[3]++;
    else if (arr[i] >= 1600 && arr[i] <= 1999)
      mp[4]++;
    else if (arr[i] >= 2000 && arr[i] <= 2399)
      mp[5]++;
    else if (arr[i] >= 2400 && arr[i] <= 2799)
      mp[6]++;
    else if (arr[i] >= 2800 && arr[i] <= 3199)
      mp[7]++;
    else if (arr[i] >= 3200) {
      others++;
    }
  }
  if (others == 0) {
    cout << mp.size() << " " << mp.size() << '\n';
  } else
    cout << mp.size() << " " << others + mp.size() << '\n';
  return 0;
}
