import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int N1=sc.nextInt();
int N2=sc.nextInt();
for(int i=1;i<=N1;i++)
{
int temp=3*i+2;
if(temp%N2==0)
continue;
else
System.out.println(temp);
}
}
}
sir i have written this code but it doesnt pass all test cases sir what is wrong in my code and sir how i increase my thinking capability so that i can code easily