#include <bits/stdc++.h>
std::vector<int> v;
int main(int argc, char* argv[]) {
std::cout << "How many items will be in Milestracker?: ";
int idx; std::cin>>idx;
assert(idx>0);
for(int i=0;i<idx;i++) {
int m; std::cin>>m;
v.push_back(m);
}
int maxmiles = *std::max_element(v.begin(),v.end());
int minmiles = *std::min_element(v.begin(),v.end());
if(maxmiles==minmiles) std::cout << "Elements in array are the same each other. So there is no maximum and minimum." << std::endl;
else std::cout << "Max miles: " << maxmiles
<< "\\Min miles: " << minmiles << std::endl;
return 0;
}