function main(input) { let [N] = getIntegers(input); let S = getStrings(input, ""); let A = getIntegers(input); let [Q] = getIntegers(input); let K = getIntegers(input); for(let i=0; i