import java.util.Scanner;
public class CountingV2
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
System.out.print("Count from: ");
int start = keyboard.nextInt();
System.out.print("Count to: ");
int end = keyboard.nextInt();
System.out.print("Count by: ");
int add = keyboard.nextInt();
System.out.println();
for (int n = start; n <= end; n = n + add)
{
System.out.print(n + " ");
}
System.out.println();
}
}