import java.util.Scanner;

public class Main {


    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        long dayCount = in.nextLong();
        long bagValue = in.nextLong();
        long[] days = new long[(int)dayCount];
        double sum= 0;
        //int bagsCount=0;
        for (int i = 0; i < days.length ; i++) {
            days[i] = in.nextLong();
            sum+=days[i];
        }
        System.out.println((long)Math.ceil(sum/bagValue));





    }
}