class Matrix(object):

    def __init__(self, matrix_string):
        self.rows = matrix_string.splitlines()
        self.rows = [[int(i) for i in line.split()] for line in self.rows]
        self.columns = [list(a) for a in list(zip(*self.rows))]

    def row(self, index):
        return self.rows[index - 1]

    def column(self, index):
        return self.columns[index - 1]

769caa4e38d3dbc5aa4c49bd533fa7d1b52dbe4e
class Matrix(object):
    <mask token>
    <mask token>
    <mask token>

class Matrix(object):
    <mask token>

    def row(self, index):
        return self.rows[index - 1]
    <mask token>

class Matrix(object):
    <mask token>

    def row(self, index):
        return self.rows[index - 1]

    def column(self, index):
        return self.columns[index - 1]

class Matrix(object):

    def __init__(self, matrix_string):
        self.rows = matrix_string.splitlines()
        self.rows = [[int(i) for i in line.split()] for line in self.rows]
        self.columns = [list(a) for a in list(zip(*self.rows))]

    def row(self, index):
        return self.rows[index - 1]

    def column(self, index):
        return self.columns[index - 1]
