#include<stdio.h>
int main()
{

    long long i,a,b;
    int k;
    int aj[10010];
    scanf("%lld%lld%d",&a,&b,&k);
    if(k>b-a) k=b-a-1;
    for(i=a;i<=b;i++)
    {
        aj[i]=i;

    }
    for(i=a;i<=a+k;i++)
    printf("%d\n",aj[i]);

    for(i=b-k;i<=b;i++)

        if(i<=a+k)
    {
        i=a+k+1;

        printf("%d\n",aj[i]);
    }
    else printf("%d\n",aj[i]);
    return 0;

}
