#ifdef _DEBUG #define xD cerr #define xO << #define xx(x1) x1 #define xP endl #else #define xD #define xO #define xx(x1) #define xP #endif #include "bits/stdc++.h" using namespace std; #include "atcoder/all" using namespace atcoder; using i64 = long long; using uni64 = unsigned long long; using i_i = pair; using i_b = pair; using l_l = pair; using d_d = pair; constexpr int INF = 2147483647; constexpr i64 I64F = 9223372036854775807; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> n >> m; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } sort(a.begin(), a.end()); int l = unique(a.begin(), a.end()) - a.begin(); cout << l << " " << (l == 1 ? 1 : 0) << endl; return 0; }