package yukicoder; import java.util.*; public class P595 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long P = sc.nextLong(); long[] H = new long[N]; for(int i=0; i