import java.io.*; import java.util.*; class Main { static final long I=1L<<60; static final int W=10000; public static void main(String[] args) { MyScanner sc = new MyScanner(); out = new PrintWriter(new BufferedOutputStream(System.out)); int n=sc.nextInt(); long v=sc.nextInt(); long[]c=new long[n]; for(int i=0;ir){ min=r; minind=i; } } long ans=I; for(int i=0;i