#define X(c)*#c/o?m/a c m/b: long long m=0x1p62;main(o,a,b){for(;~scanf("1/%d%s 1/%d\n",&a,&o,&b);printf(""-5,m/~-(X(&)X(+)X(-)X(^)X(|)0)));}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page