#include <bits/stdc++.h>
using namespace std;
int a[101];
int cnt[8], diff;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 400)
      cnt[0]++;
    else if (a[i] < 800)
      cnt[1]++;
    else if (a[i] < 1200)
      cnt[2]++;
    else if (a[i] < 1600)
      cnt[3]++;
    else if (a[i] < 2000)
      cnt[4]++;
    else if (a[i] < 2400)
      cnt[5]++;
    else if (a[i] < 2800)
      cnt[6]++;
    else if (a[i] < 3200)
      cnt[7]++;
    else
      diff++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i]) ans++;
  }
  cout << max(diff, ans) << ' ' << ans + diff << '\n';
  return 0;
}
