<filename>Python/Numpy/SumAndProd.py
import numpy as np
N, M = map(int, input().split())
A = np.array([input().split() for _ in range(N)], int)
print(np.prod(np.sum(A, axis=0), axis=0))
<filename>Python/Numpy/SumAndProd.py
import numpy as np
N, M = map(int, input().split())
A = np.array([input().split() for _ in range(N)], int)
print(np.prod(np.sum(A, axis=0), axis=0))