first = list(map(int,input().split())) beans = first[1]*first[2] y = 0 a = list(map(int,input().split())) for i in range(first[3]): y = y+a[i] if y > beans: y = -1 else: pass print (y)