<filename>URI/1-Beginner/1145.py
# -*- coding: utf-8 -*-

x, y = [int(x) for x in raw_input().split()]

for i in range(1, y + 1, x):
    sequence = ""
    for j in range(i, i + x):
        sequence += '%d ' % j
    print sequence[:-1]

<filename>URI/1-Beginner/1145.py
# -*- coding: utf-8 -*-

x, y = [int(x) for x in raw_input().split()]

for i in range(1, y + 1, x):
    sequence = ""
    for j in range(i, i + x):
        sequence += '%d ' % j
    print sequence[:-1]

# -*- coding: utf-8 -*-