#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int col[8];
int main() {
  int n;
  cin >> n;
  int ans = 0;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    x /= 400;
    if (x < 8)
      col[x] = 1;
    else
      ans++;
  }
  int an = 0;
  for (int i = 0; i < 8; i++) an += col[i];
  cout << max(an, 0) << ' ' << ans + an << endl;
  return 0;
}
