#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const long long INF = 1000000000000000000;
int cnt[10];
int main() {
  int N;
  cin >> N;
  int ans = 0;
  int free = 0;
  for (int i = 0; i < N; i++) {
    int A;
    cin >> A;
    if (A / 400 < 8) {
      if (cnt[A / 400] == 0) {
        ans++;
        cnt[A / 400]++;
      }
    } else
      free++;
  }
  cout << ans << " " << min(ans + free, 8) << endl;
}
