#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 2147483647;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<bool> color(8);
  for (int i = 0; i < int(n); ++i) cin >> a[i];
  int cnt = 0;
  for (int i = 0; i < int(n); ++i) {
    int b = a[i];
    if (b >= 1 && b <= 399) color[0] = true;
    if (b >= 400 && b <= 799) color[1] = true;
    if (b >= 800 && b <= 1199) color[2] = true;
    if (b >= 1200 && b <= 1599) color[3] = true;
    if (b >= 1600 && b <= 1999) color[4] = true;
    if (b >= 2000 && b <= 2399) color[5] = true;
    if (b >= 2400 && b <= 2799) color[6] = true;
    if (b >= 2800 && b <= 3199) color[7] = true;
    if (b >= 3200) cnt++;
  }
  int ans = 0;
  for (int i = 0; i < int(8); ++i) {
    if (color[i] == 1) ans++;
  }
  int ans2;
  ans2 = min(8, ans + cnt);
  cout << ans << ' ' << ans2 << endl;
  return 0;
}
