#include #include #include #include #include #include #include #include using namespace std; int main() { int n , m; cin >> n >> m; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } int ans = 0; map mp; for (int i = 0; i < n; i++) { mp[a[i]]++; } int mx = mp.size(); int mn; if (mp.size() == 1) mn = 1; else mn = 0; cout << mx << " " << mn << endl; return 0; }