#include <stdio.h> 
#include<iostream>
int main()
{
	int x,y,z;
	printf("enter a value for x,y and z\n");
	scanf("%d %d %d",&x,&y,&z);
	if(x>0 && y>0){
		for(int i=x;i<=y;i++)
	{
		if(i%z==0)
		{
			printf("%d",i);}	
	}}
	printf(" is between %d ""and %d",x,y);
	return 0;
}