#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <string>
#include <cstring>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <algorithm>

using namespace std;

// ---------------------
// repetition
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)

// debug
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

// ---------------------
#define INF 922337203685477580
typedef long long ll;



int main() {
  int N;
  cin >> N;
  int colors[10]; // 8

  REP(i, 10) {
    colors[i] = 0;
  }

  int pros = 0;

  REP(i, N) {
    int score;
    cin >> score;

    if (score >= 3200) {
      pros += 1;
    } else {
      colors[score / 400] += 1;
    }
  }

  int cnum = 0;
  REP(i, 8) {
    if (colors[i] > 0) {
      cnum++;
    }
  }

  int mn = max(cnum, 1);
  int mx = min(cnum + pros);

  cout << mn << " " <<  mx << endl;
  return 0;
}
