#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vpii = vector<pair<int, int>>;
ll inf = 1e9 + 7;
ll gcd(ll a, ll b) { return (b != 0) ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return (a / gcd(a, b)) * b; }
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (int)n; i++) cin >> a[i];
  vector<int> color(9);
  for (int i = 0; i < (int)n; i++) {
    if (a[i] >= 1 && a[i] <= 399)
      ++color[0];
    else if (a[i] >= 400 && a[i] <= 799)
      ++color[1];
    else if (a[i] >= 800 && a[i] <= 1199)
      ++color[2];
    else if (a[i] >= 1200 && a[i] <= 1599)
      ++color[3];
    else if (a[i] >= 1600 && a[i] <= 1999)
      ++color[4];
    else if (a[i] >= 2000 && a[i] <= 2399)
      ++color[5];
    else if (a[i] >= 2400 && a[i] <= 2799)
      ++color[6];
    else if (a[i] >= 2800 && a[i] <= 3199)
      ++color[7];
    else
      ++color[8];
  }
  int ans = 0;
  for (int i = 0; i < (int)8; i++)
    if (color[i]) ++ans;
  cout << ans << " " << ans + color[8] << "\n";
  return 0;
}
