??=/**_()__-~__*%/__+-__&__^__|_**/include<stdio.h>/*(c)_Don_Yang_10/23/1999*/ int H,T,S,Y[1024],L[1024],R[1024],P[1024],M,J,I;long/**/X[999],W;void/**/U(int O){for(printf("%c\40",I);Y[P[J]]-183&&(Y[P[J]] &7)>=(O&7);J =P[J]);Y [M]=O;P[M]= P[L[M]=J];R [P[P[J]=M ]]=M; J=M++;T= 0;{;}} char/**/E[ 1025 ]; const /* SY^_^ */char B[]="\n baka. ";void V(int/** */O) {Y[M ]=O;X[M]=W;if(+O ==199) {printf ("%ld" "\40", W);T=1; }else {T= !putchar(I);if(O==183 )S++; }R[P[M]= J]=M;J= M++;}long Q(long N){long K;switch(Y [N]){case'u' : ; if(Q(R[N ])!= 0)return+Q(L[N] )/Q(R[ N]);{;} return puts ( B);case 101: if(0L ==(K=Q( R[N ])))return+puts(B );{;} return+Q (L[N]) %K;{ ;} ;case 183: return Q(R[N]) ;case+166:return-Q(R [N]); case+150 : K=~Q( R[ N]) ; ; return K;case 84:return+Q(L[N])+Q( R[N] );case+68 :K = Q (R [N]); return Q (L[N ])-K;; case+133:return+Q(L[ N])* Q(R[N]);{; }; case+51:return+Q(L[N]) &Q ( R[N] );{;} case+34:{;}return+Q( L[N] )^Q(R[N]); ; case 17:K=Q (+ R[ + N]); return Q(L[N])|K;}return+X [+N] ;;}int main ( int/* */C,char *A [] ){if( C==01) return+puts(B);H=0; for(J =M=1; J<C;J ++ )for(I=0;A[J][I];)E[ +H ++]=A[J ][I++ ];for(Y[H=T=S=J=E[H ]=0]= 183;E [H];) if( E[H]>=48&&E[H]<=57 ){; if(E[H+ 1]==+ 120){sscanf(E+(H+=2 ),"%" "lx" ,&W);} else sscanf(E+H,"" "%l" "d",&W) ;if( T){I=42;U(133);}for( V(199) ;(E [H]>=48 &&E[ H ]<( 58 )) ||(E[H ]>96 &&E[H]<=102);H+=1);} else{I =E[H ++];if (+T) {if(I== 40){I= + 42;U( 0+ 133 );I=+40;V(183);}else if(41== I&& S){for ( J=P[J];Y[J]-183;J =P[ J] );S -- ;printf("\b)\40\0");} else{if( 42 ==I)U(+ 133);else{if(I==47 )U(0+ 117) ;else{if(I==37)U(101); else{if(0 + I == 43)U(84);else{if(I ==45)U( 68);else{if(I==38)U(+51);else if(I==94)U (34 );else{if(I==124)U(17);}}}}}}}}else{if(I==40)V(183);else{if( I==45)V(166);else{if(I==126)V(150);}}}}/*E!*/if(!T){W=0;V(199);}for(I=!putchar (8);I++<S;putchar(41));W=Q(0);return!printf("\n=\x20%ld\x20(0x%lx)\n",W,W);??> |