var line while(line=readline()){ line=parseInt(line) let str=readline() str=str.split(' ') var k=parseInt(readline()) console.log(str[line-k]) }
var line while(line=readline()){ line=parseInt(line) let str=readline() str=str.split(' ') var k=parseInt(readline()) console.log(str[line-k]) }