Disco
Anton, as a teacher at school, is organizing a disco for the children. He has been tasked with selecting a playlist so that everyone is thrilled with the celebration. But Anton has a huge database of songs, and unfortunately, the time for the disco is limited :(.
Specifically, there are songs in the database. Each song can be characterized by two integers and — the length of the song and its rating. As a music lover, Anton wants to select exactly songs (i.e., not fewer) to maximize the ratio of the sum of ratings to the sum of lengths.
More formally, let be the set of songs and , — a subset of songs that have been selected for the playlist. The goal is to maximize . In other words, it is necessary to find the sum of the numbers of all the songs that will be played at the disco, find the sum of the numbers of all the songs that will be played at the disco, and divide the former by the latter. This number needs to be maximized.
Find and output the maximum possible ratio.
Input
The first line contains two integers , () — the total number of songs and the number of songs to be selected for the playlist.
The second line contains integers ().
The third line contains integers ().
Output
Output a single number — the maximum ratio.
Your answer will be considered correct if its absolute or relative error does not exceed .
Formally, let your answer be , and the jury's answer be . Your answer will be accepted if and only if .
Examples
Note
In the first example, there are two songs that need to be added to the playlist. Therefore, the ratio will be:
In the second example, it is best to take the third and fifth songs. Therefore, the ratio will be: