Как принять ввод матрицы, используя карту в Python

s = 3
a = []
for i in range(s):
    res = list(map(int, input().split(' ')))
    a.append(res)
print(a)
Attractive Antelope