Buggy python submission (verdict: Time Limit Exceeded):
def resolve():
    A, B, K = list(map(int, input().split()))
    l = [i for i in range(A, B+1)]
    if len(l) >= 2 * K:
        ls = l[:K] + l[-K:]
    else:
        ls = l

    print('\n'.join(map(str, ls)))
    return

resolve()

Fixed submission:
def resolve():
    A, B, K = list(map(int, input().split()))
    if B - A + 1 >= 2 * K:
        ls = [i for i in range(A, A+K)] + [i for i in range(B-K+1, B+1)]
    else:
        ls = [i for i in range(A, B+1)]

    print('\n'.join(map(str, ls)))
    return

resolve()

Buggy python submission (verdict: Time Limit Exceeded):
def resolve():
    A, B, K = list(map(int, input().split()))
    l = [int(i) for i in range(A, B+1)]
    if len(l) >= 2 * K:
        ls = l[:K] + l[-K:]
    else:
        ls = l
    for _ in ls:
        print(_)
    return

resolve()

Fixed submission:
def resolve():
    A, B, K = list(map(int, input().split()))
    if B - A + 1 >= 2 * K:
        ls = [i for i in range(A, A+K)] + [i for i in range(B-K+1, B+1)]
    else:
        ls = [i for i in range(A, B+1)]

    print('\n'.join(map(str, ls)))
    return

resolve()

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

resolve()

Fixed submission:
def resolve():
    A, B, K = list(map(int, input().split()))
    if B - A + 1 >= 2 * K:
        ls = [i for i in range(A, A+K)] + [i for i in range(B-K+1, B+1)]
    else:
        ls = [i for i in range(A, B+1)]

    print('\n'.join(map(str, ls)))
    return

resolve()

Buggy python submission (verdict: Runtime Error):
def resolve():
    A, B, K = list(map(int, input().split()))
    l = list(range(A, B+1))
    if len(l) >= 2 * K:
        ls = l[:K] + l[-K:]
    else:
        ls = l
    for _ in ls:
        print(_)
resolve()

Fixed submission:
def resolve():
    A, B, K = list(map(int, input().split()))
    if B - A + 1 >= 2 * K:
        ls = [i for i in range(A, A+K)] + [i for i in range(B-K+1, B+1)]
    else:
        ls = [i for i in range(A, B+1)]

    print('\n'.join(map(str, ls)))
    return

resolve()

Buggy python submission (verdict: Runtime Error):
def resolve():
    A, B, K = list(map(int, input().split()))
    l = list(range(A, B+1))
    if 2*K > len(l):
        mn, mx = l, l
    else:
        mn = l[:K]
        mx = l[-K:]
    ans = mn + mx
    ans = list(set(ans))
    ans.sort()
    ans = list(map(str, ans))
    print('\n'.join(ans))

resolve()

Fixed submission:
def resolve():
    A, B, K = list(map(int, input().split()))
    if B - A + 1 >= 2 * K:
        ls = [i for i in range(A, A+K)] + [i for i in range(B-K+1, B+1)]
    else:
        ls = [i for i in range(A, B+1)]

    print('\n'.join(map(str, ls)))
    return

resolve()

Buggy python submission (verdict: Runtime Error):
def resolve():
    A, B, K = list(map(int, input().split()))
    l = list(range(A, B+1))
    if K > len(l):
        mn, mx = l, l
    else:
        mn = l[:K]
        mx = l[-K:]
    ans = mn + mx
    ans = list(set(ans))
    ans.sort()
    ans = list(map(str, ans))
    print('\n'.join(ans))

resolve()

Fixed submission:
def resolve():
    A, B, K = list(map(int, input().split()))
    if B - A + 1 >= 2 * K:
        ls = [i for i in range(A, A+K)] + [i for i in range(B-K+1, B+1)]
    else:
        ls = [i for i in range(A, B+1)]

    print('\n'.join(map(str, ls)))
    return

resolve()

Buggy python submission (verdict: Runtime Error):
def resolve():
    A, B, K = list(map(int, input().split()))
    l = list(range(A, B+1))
    mn = l[:K]
    mx = l[-K:]
    ans = (mn + mx)
    ans = list(set(ans))
    ans.sort()
    ans = list(map(str, ans))
    print('\n'.join(ans))

resolve()

Fixed submission:
def resolve():
    A, B, K = list(map(int, input().split()))
    if B - A + 1 >= 2 * K:
        ls = [i for i in range(A, A+K)] + [i for i in range(B-K+1, B+1)]
    else:
        ls = [i for i in range(A, B+1)]

    print('\n'.join(map(str, ls)))
    return

resolve()

Buggy python submission (verdict: Runtime Error):
def resolve():
    A, B, K = list(map(int, input().split()))
    l = list(range(A, B+1))
    mn = l[:K]
    mx = l[-K:]
    ans = (mn + mx)
    ans = list(set(ans))
    ans.sort()
    ans = list(map(str, ans))
    print('\n'.join(ans))

resolve()

Fixed submission:
def resolve():
    A, B, K = list(map(int, input().split()))
    if B - A + 1 >= 2 * K:
        ls = [i for i in range(A, A+K)] + [i for i in range(B-K+1, B+1)]
    else:
        ls = [i for i in range(A, B+1)]

    print('\n'.join(map(str, ls)))
    return

resolve()