#include <bits/stdc++.h>
using namespace std;
constexpr int mod = 1000000007;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); ++i) cin >> a[i];
  vector<int> p(8);
  int cnt = 0;
  for (int i = 0; i < (n); ++i) {
    if (a[i] < 400)
      p[0]++;
    else if (a[i] < 800)
      p[1]++;
    else if (a[i] < 1200)
      p[2]++;
    else if (a[i] < 1600)
      p[3]++;
    else if (a[i] < 2000)
      p[4]++;
    else if (a[i] < 2400)
      p[5]++;
    else if (a[i] < 2800)
      p[6]++;
    else if (a[i] < 3200)
      p[7]++;
    else
      cnt++;
  }
  int ans = 0;
  for (int i = 0; i < (8); ++i)
    if (p[i] > 0) ans++;
  cout << ans << ' ';
  ans = min(n, ans + cnt);
  cout << ans << endl;
  return 0;
}
