#include<bits/stdc++.h>
using namespace std;
#define int long long

int a[9];

signed main(){
  cin.tie(0);
  ios::sync_with_stdio(false);

  int n; cin >> n;
  for(int i = 0; i < n; i++){
    int c; cin >> c;
    a[min(8LL,c/400)]++;
  }

  int sum = 0;
  for(int i = 0; i < 8; i++){
    if(a[i]) sum++;
  }
  cout << max(sum,1LL) << " " << sum+a[8] << endl;

  return 0;
}
