define int(x) { auto os; os=scale; scale=0; x/=1; scale=os; return(x) } define floor(x) { auto xx; xx=int(x); if(xx>x)xx-=1; return(xx) } define mod(x,y) { if (y == 0) return x else return x - y * floor(x / y) }