若x^2y^n-1与-1/2x^m+1y^3是同类项,则+n=