#!/usr/bin/env python3 # %% import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines # %% import numpy as np # from numba import njit # %% N, M, K, p, q = map(int, readline().split()) B = np.array(read().split(), np.int64) # %% MOD = 10 ** 9 + 7 q_inv = pow(q, MOD - 2, MOD) p_stay = 1 + pow((q - p - p) * q_inv, K, MOD) p_stay *= pow(2, MOD - 2, MOD) p_stay %= MOD # %% x = B[:M].sum() % MOD y = B[M:].sum() % MOD answer = p_stay * x + (1 - p_stay) * y answer %= MOD print(answer) # %%