# Arup Guha
# 12/8/2020
# Solution to COP 2930 Final Exam Part A Problem 4

numRows = int(input("How many rows for your Manhattan Grid?\n"))
numCols = int(input("How many columns for your Manhattan Grid?\n"))

# Go through each row.
for row in range(numRows):

    # And column, we just want to print the sum of row and col.
    for col in range(numCols):
        print(row+col,end="\t")

    # Must go to the next line.
    print()
