intmain() { int d[900],sum[900]; int m,n,i,j=1,v; while(cin>>m>>n&&m;&&n;) { for(i=0;i<m*n;i++) scanf("%d",&d;[i]); scanf("%d",&v;); sort(d,d+m*n); sum[0]=d[0]; for(i=1;i<m*n;i++) sum[i]=d[i]+sum[i-1]; for(i=1;i<m*n;i++) { if((d[i]*i-sum[i-1])*100>=v) break; } printf("Region %dn",j++); printf("Water level is %.2f meters.n",(v/100.0+sum[i-1])/i); printf("%.2f percent of the region is under water.nn",100.0*(float)i/(m*n)); } }