n=nx+ny