#include #include int main(void){ int N; int num[1000]; bool End=false; float sum; scanf("%d\n",&N); for(int i=0;inum[i]){ a = num[i-1]; num[i-1] = num[i]; num[i] = a; flag=true; } } if(flag==false){ End=true; } } if(N%2==0){ sum = (float)((num[(N/2)+1]+num[N/2])/2.0); }else{ sum = (float)(num[N/2]+1); } printf("%.1f\n",sum); }