include[HTML_REMOVED]
using namespace std;
int main()
{
int a,b,i,j,t;
scanf(“%d%d”,&a,&b);
t=b;
for(j=1;j<=a;j)
{
for(i=t-b+1;i>0&&i<=t;i)
if(i%b!=0)
printf(“%d “,i);
else
printf(“PUM\n”);
t=(j+1)*b;
}
return 0;
}