_,d = map(int,input().split()) _ = list(map(int,input().split())) v = list(map(int,input().split())) s = sum(v) print((s+d-1)//d)