a,b,c = [int(x) for x in input().split( )]
div = set()
for x in range(1,c+1):
    if c % x == 0:
        div.add(x)
r = set()
for x in range(a,b+1):
    r.add(x)
answer_set = div&r
print(' '.join(map(str,answer_set)))


