import sys import numpy as np input = sys.stdin.buffer.readline MOD = 10 ** 9 + 7 modinv = lambda a, mod=MOD: pow(a, -1, mod) def pow_matrix_mod(x, n, mod=MOD): if not n: return np.eye(len(x), dtype=np.object) if n % 2 == 0: return pow_matrix_mod(x @ x % mod, n // 2) % mod else: return x @ pow_matrix_mod(x @ x % mod, (n - 1) // 2) % mod N, M, K, P, Q = map(int, input().split()) pq = P * modinv(Q) % MOD matr = np.array([[(1 - pq) % MOD, pq], [pq, (1 - pq) % MOD]], dtype=np.int64) tea = 0 kitchen = 0 for _ in range(M): tea += int(input()) for _ in range(N - M): kitchen += int(input()) tea %= MOD kitchen %= MOD ans = (np.array([tea, kitchen]) @ pow_matrix_mod(matr, K))[0] ans %= MOD print(ans)