#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
int n, a[1 << 17], c;
set<int> s;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cerr.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] < 3200) {
      if (1 <= a[i] && a[i] <= 399) s.insert(1);
      if (400 <= a[i] && a[i] <= 799) s.insert(2);
      if (800 <= a[i] && a[i] <= 1199) s.insert(3);
      if (1200 <= a[i] && a[i] <= 1599) s.insert(4);
      if (1600 <= a[i] && a[i] <= 1999) s.insert(5);
      if (2000 <= a[i] && a[i] <= 2399) s.insert(6);
      if (2400 <= a[i] && a[i] <= 2799) s.insert(7);
      if (2800 <= a[i] && a[i] <= 3199) s.insert(8);
    } else
      c++;
  }
  cout << (int)((s).size()) << ' ';
  return cout << (int)((s).size()) + c, 0;
}
