#include <iostream>
#include <vector>
using namespace std;
signed main() {
const int n = 7;
vector<int> a(n);
int max_elem = -INT_MAX, not_null_cnt = 0;
for(auto &i: a){
cin >> i;
max_elem = max(max_elem,i);
not_null_cnt += i != 0;
}
cout << "max elem = " << max_elem << "\n";
cout << "amount of not null elems: " << not_null_cnt;
#include <iostream>
#include <vector>
using namespace std;
signed main() {
const int n = 7;
vector<int> a(n);
int max_elem = -INT_MAX, not_null_cnt = 0;
for(auto &i: a){
cin >> i;
max_elem = max(max_elem,i);
not_null_cnt += i != 0;
}
cout << "max elem = " << max_elem << "\n";
cout << "amount of not null elems: " << not_null_cnt;
}