#include<stdio.h>
int multipli(int, int);
int main(void) {
	int N, M;
	scanf("%d", &N);
	scanf("%d", &M);
	multipli(N, M);
	return 0;
}

int multipli(int a, int b) {
	int m=b, i=1;
	while(m<=a) {
		printf("%d\n", m);
		i++;
		m=b*i;
	}
	return 0;
}
