#include <stdio.h>int main(){ int n,k,i; scanf("%d %d",&n,&k); for(i=n ; i<=(n*n)*k ; i=i+1) { printf(" %d",i); } return 0;}