#Combinationクラス class Combination: def __init__(self, n, MOD): self.fact = [1] for i in range(1, n + 1): self.fact.append(self.fact[-1] * i % MOD) self.inv_fact = [pow(self.fact[i] ,MOD - 2 ,MOD) for i in range(n + 1)] self.MOD = MOD def factorial(self, k): '''k!を求める''' return self.fact[k] def inverse_factorial(self, k): '''k!の逆元を求める''' return self.inv_fact[k] def combination(self, k, r): '''kCrを求める''' return (self.fact[k] * self.inv_fact[k - r] * self.inv_fact[r]) % self.MOD n, m, p = map(int, input().split()) v = list(map(int, input().split())) MOD = 10**9 + 7 comb = Combination(n+m, MOD) v = sorted(v, reverse = True) point = [0]*(n+1) for i in range(n): point[i+1] = point[i] + v[i] ans = 0 ruiseki_p = 0 miss = (p * pow(100 ,MOD-2, MOD)) % MOD miss = pow(miss, m, MOD) tmp_success = (1 - miss) % MOD success = pow((1 - miss) % MOD, MOD-2, MOD) #0~n-1匹の金魚をすくう場合 for i in range(n): success *= tmp_success success %= MOD ans += miss * success * comb.combination(m-1+i, i) * point[i] ans %= MOD ruiseki_p += miss * success * comb.combination(m-1+i, i) ruiseki_p %= MOD #n匹の金魚をすくう場合 if n != 1: ans += (1 - ruiseki_p) * point[n] print(ans % MOD)