/* * Validator */ #include int read_int(int min, int max, char end){ char c; int ans=0; while(true){ c=getchar(); if(c<'0'||'9'>pq(m); for(int i=0;i