contents = []
while True:
try:
line = int(input())
except EOFError:
break
contents.append(line)
n1=contents[0]
n2=contents[1]
i=1
c=0
while c!=n1:
if (3i+2)%n2!=0:
print (3i+2)
c+=1
else:
pass
i+=1
can you kindly look at it even though its giving the write ans