n,s,b=map(int,input().split()) L=list(map(int,input().split())) h=L[0] for i in range(1,n): if L[i]