function Main(input) { input = input.split("\n"); var tmp = input[0].split(" "); var s = tmp[0]; var a = parseInt(tmp[1], 10); var b = parseInt(tmp[2], 10); var res = ""; for (var i = 0; i < s.length; i++){ if (i == a || i == b){ continue; } res += s[i]; } console.log("%s", res); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));