Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
#define rep(i,m,n) for(int i=(int)(m);i<(int)(n);++i)
#define rREP(i,m,n) for(int (i)=(n)-1; (i)>=(m);--(i))
#define all(x) (x).begin(),(x).end()
#define out(y,x,h,w) (y)<0||(x)<0||(y)>=(h)||(x)>=(w)
constexpr int INF = 1000000001;
constexpr ll mod = 1000000007;
constexpr double PI = 3.1415926535897932;

template<class T>inline bool chmin(T& a, T b) {
	if (a > b) {
		a = b;
		return true;
	}
	return false;
}
template<class T>inline bool chmax(T& a, T b) {
	if (a < b) {
		a = b;
		return true;
	}
	return false;
}
inline void init() {
	cin.tie(nullptr); cout.tie(nullptr);
	ios::sync_with_stdio(false);
	cout << fixed << setprecision(15);
}

int main() {
	init();

	int N; cin >> N;
	vector<int>a(N);
	rep(i, 0, N)cin >> a[i];
	vector<int>vec(8, 0);
	int cnt = 0;
	rep(i, 0, N) {
		int x = a[i] / 400;
		if (x >= 8)++cnt;
		else vec[x]++;
	}
	int mn = 0, mx = 0;
	rep(i, 0, 8) {
		if (vec[i] == 0)mx++;
		else mn++;
	}
	cout << max(mn, 1) << " " << mn + cnt << "\n";

	return 0;
}#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
#define rep(i,m,n) for(int i=(int)(m);i<(int)(n);++i)
#define rREP(i,m,n) for(int (i)=(n)-1; (i)>=(m);--(i))
#define all(x) (x).begin(),(x).end()
#define out(y,x,h,w) (y)<0||(x)<0||(y)>=(h)||(x)>=(w)
constexpr int INF = 1000000001;
constexpr ll mod = 1000000007;
constexpr double PI = 3.1415926535897932;

template<class T>inline bool chmin(T& a, T b) {
	if (a > b) {
		a = b;
		return true;
	}
	return false;
}
template<class T>inline bool chmax(T& a, T b) {
	if (a < b) {
		a = b;
		return true;
	}
	return false;
}
inline void init() {
	cin.tie(nullptr); cout.tie(nullptr);
	ios::sync_with_stdio(false);
	cout << fixed << setprecision(15);
}

int main() {
	init();

	int N; cin >> N;
	vector<int>a(N);
	rep(i, 0, N)cin >> a[i];
	vector<int>vec(8, 0);
	int cnt = 0;
	rep(i, 0, N) {
		int x = a[i] / 400;
		if (x >= 8)++cnt;
		else vec[x]++;
	}
	int mn = 0, mx = 0;
	rep(i, 0, 8) {
		if (vec[i] == 0)mx++;
		else mn++;
	}
	cout << max(mn, 1) << " " << mn + cnt << "\n";

	return 0;
}

Compiler output:
a.cc:54:2: error: stray '#' in program
   54 | }#include<bits/stdc++.h>
      |  ^
a.cc:54:3: error: 'include' does not name a type
   54 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:62:15: error: redefinition of 'constexpr const int INF'
   62 | constexpr int INF = 1000000001;
      |               ^~~
a.cc:9:15: note: 'constexpr const int INF' previously defined here
    9 | constexpr int INF = 1000000001;
      |               ^~~
a.cc:63:14: error: redefinition of 'constexpr const ll mod'
   63 | constexpr ll mod = 1000000007;
      |              ^~~
a.cc:10:14: note: 'constexpr const ll mod' previously defined here
   10 | constexpr ll mod = 1000000007;
      |              ^~~
a.cc:64:18: error: redefinition of 'constexpr const double PI'
   64 | constexpr double PI = 3.1415926535897932;
      |                  ^~
a.cc:11:18: note: 'constexpr const double PI' previously defined here
   11 | constexpr double PI = 3.1415926535897932;
      |                  ^~
a.cc:66:30: error: redefinition of 'template<class T> bool chmin(T&, T)'
   66 | template<class T>inline bool chmin(T& a, T b) {
      |                              ^~~~~
a.cc:13:30: note: 'template<class T> bool chmin(T&, T)' previously declared here
   13 | template<class T>inline bool chmin(T& a, T b) {
      |                              ^~~~~
a.cc:73:30: error: redefinition of 'template<class T> bool chmax(T&, T)'
   73 | template<class T>inline bool chmax(T& a, T b) {
      |                              ^~~~~
a.cc:20:30: note: 'template<class T> bool chmax(T&, T)' previously declared here
   20 | template<class T>inline bool chmax(T& a, T b) {
      |                              ^~~~~
a.cc:80:13: error: redefinition of 'void init()'
   80 | inline void init() {
      |             ^~~~
a.cc:27:13: note: 'void init()' previously defined here
   27 | inline void init() {
      |             ^~~~
a.cc:86:5: error: redefinition of 'int main()'
   86 | int main() {
      |     ^~~~
a.cc:33:5: note: 'int main()' previously defined here
   33 | int main() {
      |     ^~~~