MOD = 10 ** 9 + 7 INF = 10 ** 10 import sys sys.setrecursionlimit(100000000) dy = (-1,0,1,0) dx = (0,1,0,-1) def main(): n,m,k,p,q = map(int,input().split()) lb = 0 for _ in range(m): lb += int(input()) rb = 0 for _ in range(n - m): rb += int(input()) key1 = pow(q,k,MOD) key2 = pow(q - 2 * p,k,MOD) x = (key1 + key2) * lb + (key1 - key2) * rb x %= MOD y = 2 * key1 y %= MOD ans = (x * pow(y,MOD - 2,MOD))%MOD print(ans) if __name__ =='__main__': main()