#include<bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back 
#define pf push_front 
#define mp make_pair
#define fr first
#define sc second
#define Rep(i,n) for(int i=0;i<(n);i++)
#define All(v) v.begin(),v.end()
typedef pair<int, int> Pii; typedef pair<int, Pii> Pip;
const int INF = 1107110711071107;


main()
{
  bool used[8] = {0};
  int cnt = 0;
  int n;

  cin >> n;

  while( n-- ) {
    int a; cin >> a;    
    if( 1 <= a && a <= 399 ) used[0] = true;
    else if( 400 <= a && a <= 799 ) used[1] = true;
    else if( 800 <= a && a <= 1199 ) used[2] = true;
    else if( 1200 <= a && a <= 1599 ) used[3] = true;
    else if( 1600 <= a && a <= 1999 ) used[4] = true;
    else if( 2000 <= a && a <= 2399 ) used[5] = true;
    else if( 2400 <= a && a <= 2799 ) used[6] = true;
    else if( 2800 <= a && a <= 3199 ) used[7] = true;
    else cnt++;
  }

  int ans = 0;
  Rep(i, 8) if( used[i] ) ans++;

  if( cnt ) {
    used[7] = true;
    ans = 0;
    Rep(i, 8) if( used[i] ) ans++;
    cout << ans << " ";
  } else {
    cout << ans << " ";
  }


  ans = 0;
  Rep(i, 8) if( used[i] ) ans++;

  cout << ans + cnt << endl;
}
