import sys import math iteration = int(input()) size = int(input()) for i in range(size): row = input()