function Main(input){
	input=input.split(/\n|\s/);
	input.forEach(function(e,i,a){a[i]=Number(a[i]);});
	for(var i=input[0];i<input[0]+input[2]&&i<=input[1];i=(i+1)|0){
		console.log(i);
	}
	for(var j=(1+input[1]-input[2])<i?i:(1+input[1]-input[2]);j<=input[1];j=(j+1)|0){
		console.log(j);
	}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));