#include <iostream>
using namespace std;

int main()
{
  int N;
  int a[110];
  cin >> N;
  for(int i = 0; i < N; ++i)
  {
    cin >> a[i];
  }
  
  int colors[9] = {0};
  for(int i = 0; i < N; ++i)
  {
    colors[a[i]/400]++;
  }
  
  int num = 0;
  for(int i = 0; i < 8; ++i)
  {
    if(colors[i] != 0)
    {
      num++;
    }
  }
  
  cout << num << " " << num + colors[8] << endl;
}