n, t = list(map(int, input().split()))

tl = list(map(int, input().split()))



time = 0

for i in range(1, n):

    if tl[i] - tl[i-1] > t:

        time += t

    else:

        time += tl[i] - tl[i-1]



print((time + t))
n, t = list(map(int, input().split()))

tl = list(map(int, input().split()))

ans = 0

for i in range(n-1):

    if tl[i+1] - tl[i] >= t:

        ans += t

    else:

        ans += tl[i+1] - tl[i]



print((ans+t))
n, t = list(map(int, input().split()))
tl = list(map(int, input().split()))
time = 0
for i in range(1, n):
    if tl[i] - tl[i - 1] > t:
        time += t
    else:
        time += tl[i] - tl[i - 1]
print((time + t))

n, t = list(map(int, input().split()))
tl = list(map(int, input().split()))
ans = 0
for i in range(n - 1):
    if tl[i + 1] - tl[i] >= t:
        ans += t
    else:
        ans += tl[i + 1] - tl[i]
print((ans + t))

-time = 0 -for i in range(1, n): -    if tl[i] - tl[i - 1] > t: -        time += t +ans = 0 +for i in range(n - 1): +    if tl[i + 1] - tl[i] >= t: +        ans += t -        time += tl[i] - tl[i - 1] -print((time + t)) +        ans += tl[i + 1] - tl[i] +print((ans + t))