Buggy python submission (verdict: Runtime Error):
A,B,K=map(int,input().split())
num=list(range(A,B+1))
num_rev=num[::-1]
if len(num)-2*K>=0:
    for i in range(K):
        print(num[i])
    for i in range(K):
        print(num_rev[K-i-1])
else:
    for i in num:
        print(i)


Fixed submission:
A,B,K=map(int,input().split())
if B-A+1-2*K>=0:
    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())
num=list(range(A,B+1))
num_rev=num[::-1]
if len(num)-2*K>=0:
    for i in range(K):
        print(num[i])
    for i in range(K):
        print(num_rev[K-i-1])
else:
    for i in num:
        print(i)


Fixed submission:
A,B,K=map(int,input().split())
if B-A+1-2*K>=0:
    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())
num=list(range(A,B+1))
num_rev=num[::-1]
if len(num)-2*K>0:
    for i in range(K):
        print(num[i])
    for i in range(K):
        print(num_rev[K-i-1])
else:
    for i in num:
        print(i)

Fixed submission:
A,B,K=map(int,input().split())
if B-A+1-2*K>=0:
    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())
num=list(range(A,B+1))
num_right=num[:K]
num_left=sorted(num,reverse=True)[:K]
ans=set(num_right+num_left)
for i in ans:
    print(i)


Fixed submission:
A,B,K=map(int,input().split())
if B-A+1-2*K>=0:
    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())
num=list(range(A,B+1))
num_right=num[:K]
num_left=sorted(num,reverse=True)[:K]
ans=list(set(num_right+num_left))
for i in ans:
    print(i)


Fixed submission:
A,B,K=map(int,input().split())
if B-A+1-2*K>=0:
    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())
num_right=num[:K]
num_left=sorted(num,reverse=True)[:K]
ans=list(set(num_right+num_left))
for i in ans:
    print(i)

Fixed submission:
A,B,K=map(int,input().split())
if B-A+1-2*K>=0:
    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())
num=list(range(A,B+1))
if len(num)%2!=0:
    ans_list=num[:K]+num[len(num)-K+1:]
elif len(num)%2==0:
    ans_list=num[:K]+num[len(num)-K:]
elif len(num)-K>0 or len(num)-K+1>0:
    ans_list=num[:K]
for i in range(len(ans_list)):
    print(ans_list[i])

Fixed submission:
A,B,K=map(int,input().split())
if B-A+1-2*K>=0:
    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())
num=list(range(A,B+1))
if len(num)-K>0:
    if len(num)%2!=0:
        ans_list=num[:K]+num[len(num)-K+1:]
    else:
        ans_list=num[:K]+num[len(num)-K:]
else:
    ans_list=num[:K]
for i in range(len(ans_list)):
    print(ans_list[i])

Fixed submission:
A,B,K=map(int,input().split())
if B-A+1-2*K>=0:
    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())
num=list(range(A,B+1))
if len(num)+1-K>=0:
    ans_list=num[:K]+num[len(num)-K+1:]
else:
    ans_list=num[:K]
for i in range(len(ans_list)):
    print(ans_list[i])

Fixed submission:
A,B,K=map(int,input().split())
if B-A+1-2*K>=0:
    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)