let allLines = [];
let arr1 = read_line().split(' ');
let all = read_line().split(' ');
all = all.map((item) => Number(item))
while (line = read_line()) {
allLines.push(line);
}
var day = Number(arr1[1]);
var val = Number(arr1[2]);
for (var i = 0; i < day; i++) {
var arr = allLines[i].split(' ');
if (arr[0] == 'A') {
all[arr[1] - 1]++
} else {
console.log(all);
all[arr[1] - 1]--;
}
}
var n = all[val - 1];
all = all.sort();
all = all.reverse();
var index = all.findIndex(function(item) {
return item == n;
})
print(++index);