import random
random.seed(2019)

(n, m, s, d) = map(int, raw_input().split())
c = map(int, raw_input().split())
r = [0]*s

idx = range(s)
random.shuffle(idx)
for i in idx:
    r[i] = min(n, d-c[i])
    n -= r[i]

if sum(c[i] for i in range(s) if not r[i]) >= m: print ' '.join(map(str, r))
else: print 'impossible'
