Buggy python submission (verdict: Runtime Error):
a,b,k = map(int,input().split())
li = list(range(a,b + 1))
if (b - a + 1) > 2 * k:
    for i in range(a,a + k):
        print(i)
    for i in range(b - k + 1,b + 1):
        print(i)
else:
    for i in li:
        print(i)

Fixed submission:
a,b,k = map(int,input().split())

if (b-a+1) > 2*k:
    for i in range(a,a+k):
        print(i)
    for i in range(b-k+1,b+1):
        print(i)
else:
    for i in range(a,b+1):
        print(i)

Buggy python submission (verdict: Runtime Error):
a,b,k = map(int,input().split())
li = list(range(a,b + 1))
if b - a + 1 > 2 * k:
    for i in li[:k]:
        print(i)
    for i in li[-k:]:
        print(i)
else:
    for i in li:
        print(i)

Fixed submission:
a,b,k = map(int,input().split())

if (b-a+1) > 2*k:
    for i in range(a,a+k):
        print(i)
    for i in range(b-k+1,b+1):
        print(i)
else:
    for i in range(a,b+1):
        print(i)

Buggy python submission (verdict: Runtime Error):
a,b,k = map(int,input().split())
li = list(range(a,b+1))
if b - a + 1 >= 2 * k:
    for i in li[:k]:
        print(i)
    for i in li[-k:]:
        print(i)
else:
    for i in li:
        print(i)

Fixed submission:
a,b,k = map(int,input().split())

if (b-a+1) > 2*k:
    for i in range(a,a+k):
        print(i)
    for i in range(b-k+1,b+1):
        print(i)
else:
    for i in range(a,b+1):
        print(i)

Buggy python submission (verdict: Runtime Error):
def solve(): 
    a,b,k = map(int,input().split())
    li = list(range(a,b+1))
    if b - a + 1 >= 2 * k:
        for i in li[:k]:
            print(i)
        for i in li[-k:]:
            print(i)
    else:
        for i in li:
            print(i)
            
if __name __ == "__main__":
    solve()

Fixed submission:
a,b,k = map(int,input().split())

if (b-a+1) > 2*k:
    for i in range(a,a+k):
        print(i)
    for i in range(b-k+1,b+1):
        print(i)
else:
    for i in range(a,b+1):
        print(i)

Buggy python submission (verdict: Runtime Error):
A,B,K = map(int,input().split())
li = list(range(A,B+1))

from_A = li[0:K]
to_B = li[-K::]

sum_li  = list(set(from_A + to_B))

for i in sum_li:
    print(i)

Fixed submission:
a,b,k = map(int,input().split())

if (b-a+1) > 2*k:
    for i in range(a,a+k):
        print(i)
    for i in range(b-k+1,b+1):
        print(i)
else:
    for i in range(a,b+1):
        print(i)

Buggy python submission (verdict: Runtime Error):
#coding utf-8
A,B,K= map(int,input().split())
y = list(range(A,B + 1))
for i in y[0:K]:
    print(i)

for i in y[-K-1:-1]:
    print(i)

Fixed submission:
a,b,k = map(int,input().split())

if (b-a+1) > 2*k:
    for i in range(a,a+k):
        print(i)
    for i in range(b-k+1,b+1):
        print(i)
else:
    for i in range(a,b+1):
        print(i)

Buggy python submission (verdict: Runtime Error):
#coding utf-8
A,B,K= map(int,input().split())
y = list(range(A,B + 1))
for i in y[0:K]:
    print(i)

for i in y[-1:-K-1:-1]:
    print(i)

Fixed submission:
a,b,k = map(int,input().split())

if (b-a+1) > 2*k:
    for i in range(a,a+k):
        print(i)
    for i in range(b-k+1,b+1):
        print(i)
else:
    for i in range(a,b+1):
        print(i)

Buggy python submission (verdict: Runtime Error):
#coding utf-8
A,B,K= map(int,input().split())
y = list(range(A,B + 1))
#for i in y[0:K]:
  #  print(i)

print(y[-1:-K-1:-1])

Fixed submission:
a,b,k = map(int,input().split())

if (b-a+1) > 2*k:
    for i in range(a,a+k):
        print(i)
    for i in range(b-k+1,b+1):
        print(i)
else:
    for i in range(a,b+1):
        print(i)