#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
int dp[9] = {};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int a;
  for (int i = 0; i < (int)n; i++) {
    cin >> a;
    if (a / 400 >= 8)
      dp[8]++;
    else
      dp[a / 400] = 1;
  }
  int cnt = 0;
  for (int i = 0; i < (int)8; i++) {
    if (dp[i] == 1) cnt++;
  }
  int MIN = max(cnt, dp[8]);
  int MAX = min(8, cnt + dp[8]);
  cout << MIN << " " << MAX << endl;
  return 0;
}
