#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
const long long MOD = 1000000007;
int main() {
  int n;
  cin >> n;
  vector<int> color(9);
  for (int i = 0; i < (int)(9); i++) color[i] = 0;
  int top = 0;
  for (int i = 0; i < (int)(n); i++) {
    int a;
    cin >> a;
    if (a > 3200) a = 3200;
    color[a / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < (int)(8); i++)
    if (color[i] > 0) ans++;
  cout << max(ans, 1) << " " << min(8, ans + color[8]) << endl;
}
