function Main(input) { const data = input.split("\n"); const d = Number(data[0]); const c = data[1] + data[2]; let max = 0; for(let i=0; i=0; i--) { if(list[i] == 'x') return count; count++; } return count; } Main(require("fs").readFileSync("/dev/stdin", "utf8"));