function Main(input) {
    input = input.split("\n");
    tmp = input[1].split(" ");
    var c = 0;
    for(i=0;i<tmp.length;i++){
      c += parseInt(tmp[i])
    }
    for(j=0;j<input[2];j++){
       tmp2 = input[3+j].split(" ");
       var d = c - tmp[parseInt(tmp2[0])-1] + parseInt(tmp2[1]);
       console.log('%s', d);
    }
}

function debug(){
	var input = document.getElementById("input").value;
	Main(input);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));