Problem: It is well known that the planet suffers from the energy crisis. Little Petya doesn't like that and wants to save the world. For this purpose he needs every accumulator to contain the same amount of energy. Initially every accumulator has some amount of energy: the i-th accumulator has ai units of energy. Energy can be transferred from one accumulator to the other. Every time x units of energy are transferred (x is not necessarily an integer) k percent of it is lost. That is, if x units were transferred from one accumulator to the other, amount of energy in the first one decreased by x units and in other increased by <image> units.

Your task is to help Petya find what maximum equal amount of energy can be stored in each accumulator after the transfers.

Input

First line of the input contains two integers n and k (1 ≤ n ≤ 10000, 0 ≤ k ≤ 99) — number of accumulators and the percent of energy that is lost during transfers.

Next line contains n integers a1, a2, ... , an — amounts of energy in the first, second, .., n-th accumulator respectively (0 ≤ ai ≤ 1000, 1 ≤ i ≤ n).

Output

Output maximum possible amount of energy that can remain in each of accumulators after the transfers of energy.

The absolute or relative error in the answer should not exceed 10 - 6.

Examples

Input

3 50
4 2 1


Output

2.000000000


Input

2 90
1 11


Output

1.909090909

Solution (in PYTHON3):

Solution:
# def marble(q,n,arr, queries):
#   arr = sorted(arr)
#   for q in queries:
#     ind = -1
#     left = 0
#     right = n 
#     while left < right:
#       mid = left + (-left + right)//2 
#       if q <= arr[mid]:
#         ind = mid 
#         right = mid
#         # break 
#       else:
#         left = mid + 1 
#     if ind == -1 or arr[ind] != q:
#       print("{} not found".format(q))
#     else:
#       print("{0} found at {1}".format(q, ind+1))
    
# case = 1
# while True:
#   n,q = list(map(int, input().strip().split(" ")))
#   if n == 0 and q == 0:
#     break
#   arr = []
#   for i in range(n):
#     x = int(input().strip())
#     arr.append(x)
  
#   queries = []
#   for _ in range(q):
#     queries.append(int(input().strip()))
#   print("CASE# {}:".format(case))
#   marble(q,n,arr,queries)
#   case += 1

# def pizza(n,k,arr):
#   total = 0 
#   arr = sorted(arr)

#   for ind, x in enumerate(arr):
#     left = ind + 1
#     right = n-1
#     while left <= right:
#       mid = (left + right)//2 
#       if k == arr[mid]-x:
#         total += 1
#         break 
#       elif k > arr[mid]-x:
#         left = mid + 1 
#       else:
#         right = mid - 1 

#   print(total)
  

# n,k = list(map(int, input().strip().split(" "))) 
# arr = list(map(int, input().strip().split(" "))) 

def energy(n,k,arr):
  arr = sorted(arr)
  max_energy = -1
  left = min(arr) 
  right = max(arr)
  
  while abs(left-right) > 10**(-6):
    X = (left + right)/2
    # print(left, X, right)
    a = sum(arr)
    thua = 0
    for i in arr:
      if i > X:
        # a += (i-X)
        thua += ((i-X)*k/100)
      # else:
      #   a += (i)
    #a + thua - n*X .. 0
    #     ^     ^
    if a - thua == n*X:
      max_energy = X
    elif a - thua - n*X > 0:
      left = X 
    else:
      right = X
  print(left)

n,k = list(map(int, input().strip().split(" ")))  
arr = list(map(int, input().strip().split(" "))) 
energy(n,k,arr)



# 4 2 1 -> X = 2
# 2 2 1 = 5
# 1 (5 - 2)*k% 0 = 1


# Mức năng lượng sau khi transfer + Năng lượng thừa = Tổng năng lượng muốn
# #                                                   = n * X
# Tổng năng lượng ban đầu - năng lượng mất = Tổng năng lượng muốn
#                           = 
# 2 2 2 = 2*3 = 6