int select(int a , int b , int c){
return max(max(min(a,b),min(b,c)),min(c,a));
}