#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n);i++)
#define sz(x) int(x.size())
typedef long long ll;
typedef pair<int,int> P;
 
int main(){
  int n;
  cin >> n;
  map<int,int> mp;
  int free = 0;
  rep(i,n) {
    int a;
    cin >> a;
    if (a < 400) mp[0] = 1;
    else if (a < 800) mp[1] = 1;
    else if (a < 1200) mp[2] = 1;
    else if (a < 1600) mp[3] = 1;
    else if (a < 2000) mp[4] = 1;
    else if (a < 2400) mp[5] = 1;
    else if (a < 2800) mp[6] = 1;
    else if (a < 3200) mp[7] = 1;
    else free++; 
  }
  cout << (!mp.empty() ? mp.size() : 1) << " " << mp.size() + free << endl;
  return 0;