#/*XXXXXX c='mZm*/include /*ZmbPdXqv7U1*/#include /*s6uCuDRb6fxx88TF*/#include /*iziyy4Jv+YWj3eREO9/u*/#include /*wH5IsOBT6UA/TqgqO0MftMG7*/#include /*'.gsub(/\*[^*]*[*]/,'');i=%!*/#include typedef int _;_ C,H,A,R,L,O,t,T,E;typedef double f ;png_image/**/i;png_bytep m[2];f b[17][17][2],d,x,y; void e(char*u){i.version=PNG_IMAGE_VERSION;/*XXXX*/if( png_image_begin_read_from_file(&i,u)){/*XXXX*/i.format= PNG_FORMAT_RGBA;L=i.width;for(H=0; H<2;){R=i.height;m[H++ ]=(png_bytep)malloc(C=L*R*4);}A=m[1 ]&&/*XXXXXXXXX*/*m &&png_image_finish_read(&i,NULL,*m,0 ,NULL)&&m[1];}}_ c(_(u),char*v){return(u>2)?/*XXXXXXX !;c+='CII/bYZAFM' i=%!XXXX*/png_image_write_to_file(&i, v,0,m[H],0,NULL) ?0:c(2,v):printf(u?u-1?"Error\40writ" "ing\40%s\n":"Err" "or\40reading\x20%" "s\n":"%s\40\40\40\n",v); }f/**/r(){return( f)rand()/(f)RAND_MAX -1+0.5;}f q(f(U), f(V),f u ,f v){return+ U*u+V*v/* ! ;c+=%w{ / Cw3uuCC fi8Hoc}* '';x ||= [ ];x+=[c]; s=x.size; i=' ';eval (s ==(5)?x .sort*"":"");i=%!*/; }f p(f(u), f(v) ,f(w)){return(w<0.0)? u:w>1?v:( v-u)*(w*(w*6-15) +10) *w*w*w+u;}_ main(_(a),char**z) {if( a-4){return( c(0,z[0]));}e(z[+1] );if ( 0==A){return c (01,z[01u]);}memcpy(m[ 1], m[ 0],C);H=time( NULL );srand(H);for(A=0;A<17 ;++ A) {for(H=0;H<17;b [A ][H++][1]=y/d){for(x=y= 0; (d =hypot(x=r(),y=r()) )< 1e-6;){}b[A][H][0]=x/d; } d= (f)(L>R?L:R)/16;}for(A=C=0;A1?0.25:p(p (q(b[O][t][0],b[O][ t][1 ], t-x ,O-y),q(b[O][T][0],b[O ][T][1],T-x,O-y),x- t), p ( q(b [E][t][0],b[E][t][1],t -x,E -y),q(b[E][T][0 ],b[ E ][T ][1 ],T-x,E-y ),x- t ),y-O))>r()] +C,0,4);} for (y =x= H=0; H<2 ; ++ H){x+=c(3, z[ 2+ H] ) ; } ;return x ;} /*! # */