Rectangles (1)

Write a program that prints rectangles with n×mn\times m values (n+m)mod5(n+m)\mod 5’s.

Input

Input consists of several pairs of natural numbers.

Output

For every pair (n,m)(n,m), print a rectangle of size n×mn \times m full of (n+m)mod5(n+m)\mod 5’s. Separate two rectangles with an empty line.

Problem information

Author: Unknown
Translator: Maria Serna

Generation: 2026-01-25T14:45:45.379Z

© Jutge.org, 2006–2026.
https://jutge.org