#include using namespace std; int main() { int n, k; cin >> n >> k; int MIN=1000, MAX=0; for (int i=0; i> t; if (t>MAX) MAX=t; if (t