MOD = 10 ** 9 + 7 def matpow(A, B, w): l = len(A) while w: if w & 1: C = [0] * l for i in range(l): for j in range(l): C[i] += A[i][j] * B[j] C[i] %= MOD B = C C = [[0] * l for _ in range(l)] for i in range(l): for j in range(l): for k in range(l): C[i][j] += A[i][k] * A[k][j] C[i][j] %= MOD A = C w >>= 1 return B n, m, k, p, q = map(int, input().split()) B = [0, 0] for _ in range(m): B[0] += int(input()) B[0] %= MOD for _ in range(n - m): B[1] += int(input()) B[1] %= MOD A = [[0, 0], [0, 0]] A[0][1] = A[1][0] = p * pow(q, MOD - 2, MOD) % MOD A[0][0] = A[1][1] = (1 - A[0][1]) % MOD print(matpow(A, B, k)[0])