Go: package main

import (
	"fmt"
	"math"
)

func main() {
	var M, N, P int
	for {
		fmt.Scan(&N, &M, &P)
		if N == 0 && M == 0 && P == 0 {
			return
		}

		arr := make([]int, N)
		sum := 0
		for i := 0; i < N; i++ {
			var po int
			fmt.Scan(&po)
			arr[i] = po
			sum += po
		}

		if arr[M-1] == 0 {
			fmt.Println(0)
		} else {
			fmt.Println(math.Floor(float64(sum * (100 - P) / arr[M-1])))
		}
	}
}

Python: while True:
	n,m,p = map(int, input().split(" "))
	if n+m+p == 0:
		break
	total = 0
	winner = 0
	for i in range(1, n+1):
		x = int(input())
		total += x
		if i == m:
			winner = x
	print(int((1 - p / 100) * 100 * total / winner) if winner > 0 else 0)

Python: ansli=[]

while 1:
    a=input().split()
    if a[0]=="0" and a[1]=="0" and a[2]=="0":
        break
    for i in range(len(a)):
        a[i]=int(a[i])
    x=[]
    for i in range(a[0]):
        x.append(int(input()))

    sum0=0
    for i in x:
        sum0+=i
    sum=sum0*(100-a[2])
    hit=x[a[1]-1]
    if hit==0:
        ansli.append(0)
    else:
        ansli.append(int(sum/hit))

for i in ansli:
    print(i)

Python: while 1:
    n,m,p = map(int,input().split())
    if n == 0 and m == 0 and p == 0:
        break
    x = [int(input()) for i in range(n)]
    Sum_kingaku = sum(x)*100
    p = p / 100
    koujyo = Sum_kingaku * p
    kakekin = Sum_kingaku - koujyo
    if x[m-1] == 0:
        ans = 0
    else:
        ans = kakekin // x[m-1]
    print(int(ans))

Python: while 1:
    n,m,p=map(int,input().split())
    if n==0:
        break
    data=[]
    for i in range(n):
        data.append(int(input()))
    print(sum(data)*(100-p)//data[m-1] if data[m-1]!=0 else 0)

Python: l = input()
while l != '0 0 0':
    l_split = l.split(' ')
    athletes = int(l_split[0])
    winner = int(l_split[1])
    percent = int(l_split[2])
    total_ticket = 0
    win_ticket = 0
    for i in range(athletes):
        tickets = int(input())
        total_ticket += tickets
        if i + 1 == winner and tickets > 0:
            win_ticket = tickets
    if win_ticket > 0:
        total_money = total_ticket*(100 - percent)
        print(str(total_money//win_ticket))
    else:
        print('0')
    l = input()

Python: while True:
    N, M, P = map(int, input().split())
    if N == 0 and M == 0 and P == 0:
        break
    X = [int(input()) for _ in range(N)]
    win = X[M - 1]
    if win == 0:
        print(0)
    else:
        # print(int(sum(X) * 100 // win * (1 - P / 100)))
        print(int(sum(X) * 100 * (1 - P / 100) // win))

Python: from math import floor

while True:
    n,m,p = map(int, input().split())
    if n == 0 :  break
    x = []
    for i in range(n):
        x.append(int(input()))
    pool = sum(x) * (100 - p)
    div = floor(pool / x[m - 1]) if x[m - 1] != 0 else 0
    print(div)

Python: while True:
    n,m,p = map(int,input().split())
    if m==n==p==0: break
    l = [int(input()) for _ in range(n)]
    r = int(sum(l)*(100-p)/l[m-1]) if l[m-1]!=0 else 0
    print(r)

Python: while 1:
    n,m,p=map(int,input().split())
    if n==m==p==0:break
    ticket=[]
    for i in range(n):ticket.append(int(input()))
    if ticket[m-1]==0:print(0)
    else:print(sum(ticket)*(100-p)//ticket[m-1])

Python: ansli=[]

while 1:
    a=input().split()
    if a[0]=="0" and a[1]=="0" and a[2]=="0":
        break
    for i in range(len(a)):
        a[i]=int(a[i])
    x=[]
    for i in range(a[0]):
        x.append(int(input()))

    sum0=0
    for i in x:
        sum0+=i
    sum=sum0*100*((100-a[2])/100)
    hit=x[a[1]-1]
    if hit==0:
        ansli.append(0)
    else:
        ansli.append(int(sum/hit))

for i in ansli:
    print(i)

Python: while True:
  N,M,P=map(int,input().split())
  if N==0 and M==0 and P==0:
    break
  card=[]
  for i in range(N):
    card.append(int(input()))
  if card[M-1]==0:
    print(0)
  else:
    sc=sum(card)
    kati=sc*100-(sc*100*(P/100))
    haitou=kati//(card[M-1])
    print(int(haitou))

Python: #!/usr/bin/python
# -*- coding: utf-8 -*-
import math

while True:
    amount, number, per = map(int, input().split())
    if amount == 0 and number == 0 and per == 0:
        break

    vote = [int(input()) for _ in range(amount)]

    if vote[number-1] == 0:
        print("0")
    else:
        print(math.floor(100 * sum(vote) * (100 - per) / 100 / vote[number-1]))

Python: while True:
    N,M,P = map(int,input().split())
    if N == 0: break
    src = [int(input()) for i in range(N)]
    if src[M-1] == 0:
        print(0)
    else:
        print((100-P) * sum(src) // src[M-1])

Python: def solve(n, m, p):
    tot = 0
    a = 0
    for i in range(n):
        x = int(input())
        tot += 100 * x
        if i == m-1: a = x

    if a == 0:
        print(0)
        return

    tot *= (100-p) / 100.0
    ans = int(tot / a)
    print(ans)


while 1:
    n, m, p = map(int, input().split())
    if n == 0: break
    solve(n, m, p)

Python: if __name__ == '__main__':
   while 1:
    n,m,p = list(map(int,input().strip().split()))
    if n ==0 and m ==0 and p ==0:break
    player = []
    for _ in range(n):
        player.append(int(input()))
    bet = sum(player) * 100 *(1.0 - p/100)
    if player[m-1] == 0:print(0)
    else:
        ans = bet/player[m-1]
        print(int(ans))

Python: def solve(N,M,P,Xs):
	if Xs[M-1] == 0:
		return 0
	return (sum([x*100 for x in Xs]) * (1.0-P/100)) / Xs[M-1]
	
def main():
	while True:
		N,M,P = map(int,input().split())
		if N == 0 and M == 0 and P == 0:
			return
		Xs = [int(input()) for _ in range(N)]
		print(int(solve(N,M,P,Xs)))

if __name__ == '__main__':
	main()

Python: import math
TICKET_PRICE = 100


def get_data_list():
    data_list = input().split()
    for i in range(len(data_list)):
        data_list[i] = int(data_list[i])
    return data_list

def get_input():
    input_data = int(input())
    return input_data

def make_ticket_dict(player):
    ticket_sum = 0
    ticket_list = dict()
    order = 1
    for i in range(player):
        input_data = get_input()
        ticket_list[order] = input_data
        order += 1
    return ticket_list

def calculate_distribution_money(ticket_list, deduction_rate):
    ticket_sum = 0
    for ticket_num in ticket_list.values():
        ticket_sum += ticket_num
    sum_money = ticket_sum * TICKET_PRICE
    distribution_money = sum_money * (100 - deduction_rate) / 100
    return distribution_money


if __name__ == "__main__":
    while True:
        data_list = get_data_list()
        if data_list[0] == 0:
            break
        player = data_list[0]
        winner = data_list[1]
        deduction_rate = data_list[2]
        ticket_list = make_ticket_dict(player)
        if ticket_list[winner] == 0:
            print(0)
            continue
        distribution_money = calculate_distribution_money(ticket_list, deduction_rate)
        each_distribution_money = math.floor(distribution_money / ticket_list[winner])
        print(each_distribution_money)

Python: ansli=[]
sum=0

while 1:
    a=input().split()
    if a[0]=="0" and a[1]=="0" and a[2]=="0":
        break
    for i in range(len(a)):
        a[i]=int(a[i])
    x=[]
    for i in range(a[0]):
        x.append(int(input()))

    sum0=0
    for i in x:
        sum0+=i
    sum=sum0*100*((100-a[2])/100)
    hit=x[a[1]-1]
    #print(sum, hit)
    if hit==0:
        ansli.append(0)
    else:
        ansli.append(int(sum/hit))

for i in ansli:
    print(i)

Python: def solve(N,M,P,Xs):
	if Xs[M-1] == 0:
		return 0
	total = (sum([x*100 for x in Xs]) * (1-P/100))
	return total / Xs[M-1]
	
def main():
	while True:
		N,M,P = map(int,input().split())
		if N == 0 and M == 0 and P == 0:
			return
		Xs = [int(input()) for _ in range(N)]
		print(int(solve(N,M,P,Xs)))

if __name__ == '__main__':
	main()