def trsp(m):
    """Transpose of matrix"""
    M = len(m[0])
    n = len(m)
    T = [n*[0] for i in range(M)]
    for i in range(n):
        for j in range(M):
           T[j][i] = m[i][j]
    return T