#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  int n;cin>>n;
  int color[8];rep(i,8)color[i]=0;
  int rate;
  int over=0;
  rep(i,n) {
    cin>>rate;
    if (rate>=3200) over++;
    else color[rate/400]++;
  }
  int cnt = 0; rep(i,8) if(color[i]>0) cnt++;
  cout << max(cnt, 1) << " " << cnt+over;
}
