#include int min(int a,int b){if(a0){puts("-1");return 0;} for(int i=0;i