import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 1円の枚数 int coinA = sc.nextInt(); // 5円の枚数 int coinB = sc.nextInt(); for(int i = 1; i <= coinB; i++){ for(int j = 1; j <= coinA; j++){ System.out.println(coinA * j + coinB * i); } } } }