N,M,K=map(int,input().split()) temp=list(input().split()) col=list(map(int,temp[1:])) data=[] for i in range(N): data.append(int(input())) if temp[0]=="+": print((sum(col)*N+sum(data)*M)%100) else: print((sum(col)*sum(data))%100) #print(col) #print(data)