#include <bits/stdc++.h>
using ll = long long;
using namespace std;
const ll MOD = 1e9 + 7;
int arr[400];
int main(void) {
  int N;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    arr[a / 400]++;
  }
  int cnt = 0;
  for (int i = 0; i <= 7; ++i)
    if (arr[i]) cnt++;
  cout << cnt << " " << min(cnt + arr[8], 8) << endl;
  return 0;
}
