\int_{R^2}{f(x,y)dm}=\int_A{f(x,y)dm}+\int_B{f(x,y)dm}=0+0=0