import random

m1= int(input("Write the number of rows for first matrix\n"))

n1 =int(input("Write the number of columns for first matrix\n"))

l = [[random.random() for i in range(m1)]for j in range(n1)]

for i in range(m1):

for j in range(n1):

l[i][j] = input()

for i in range(m1):

for j in range(n1):

print(l[i][j] , end= " ")

print()