import sys input = sys.stdin.readline from collections import Counter LIST=[] C=Counter() com,N,M=list(map(int,input().split())) A=list(map(int,input().split())) ind=0 while True: if len(LIST)==N and ind==N: break S=input().strip() if S=="TURN": if ind