The city government is preparing an exhibition and is collecting industrial products. There are n candidate products, and the government chooses k of them. It wants the total price of the chosen products to be small, and it also takes their sizes and weights into account. Product i has price xi, size yi and weight zi. The government picks k different products i1,…,ik that minimize the evaluation value
e=(∑j=1kxij)(∑j=1kyij)(∑j=1kzij)
If two or more choices reach the minimum, the government picks one of them uniformly at random.
You work for the company that makes product 1. The company will cut the price, the size and the weight of product 1 so that the government may pick it, that is, so that the probability of picking product 1 becomes positive. Cutting the price to (1−α)x1, the size to (1−β)y1 and the weight to (1−γ)z1, where 0≤α,β,γ≤1, costs αA+βB+γC million yen. The price, the size and the weight after the cut do not have to be integers, and the government evaluates product 1 with the cut values. Compute the smallest investment that makes it possible for the government to choose product 1. Every other company leaves its product unchanged.
The input is a single test case in the following format.
n k A B C
x1 y1 z1
x2 y2 z2
...
xn yn zn
The first line has five integers. n (1≤n≤50) is the number of products, k (1≤k≤n) is how many products the government chooses, and A, B, C (1≤A,B,C≤100) fix the cost of cutting the price, the size and the weight of product 1. Each of the next n lines has three integers xi, yi, zi (1≤xi,yi,zi≤100), the price, the size and the weight of product i.
Print the smallest investment in million yen on one line, rounded to exactly six digits after the decimal point.