#include using namespace std; int rez(int no,int nr,int K){ int ret=no; for (int i=1;i>T; cin>>K; int no=1<>nr; cout<