#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
const int MOD = 1000000009;
int main() {
  int n;
  cin >> n;
  map<int, bool> mp;
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (1 <= a && a < 400) mp[1] = true;
    if (400 <= a && a < 800) mp[2] = true;
    if (800 <= a && a < 1200) mp[3] = true;
    if (1200 <= a && a < 1600) mp[4] = true;
    if (1600 <= a && a < 2000) mp[5] = true;
    if (2000 <= a && a < 2400) mp[6] = true;
    if (2400 <= a && a < 2800) mp[7] = true;
    if (2800 <= a && a < 3200) mp[8] = true;
    if (3200 <= a) cnt++;
  }
  cout << mp.size() << " " << (int)mp.size() + cnt << endl;
}
