import machine
import utime
led_externo = machine.Pin(7, machine.Pin.OUT)
boton = machine.Pin(18, machine.Pin.IN, machine.Pin.PULL_UP)
def llenado(matx):
i = 0
j = 0
k = 0
for i in range(3):
for j in range(3):
print("A[",i,",",j,"]: ", end="")
matx[k+j] = int(input())
led_externo.toggle()
k = k+3
def operaciones(matx):
i = 0
j = 0
k = 0
for i in range(3):
for j in range(3):
matx[k+j] = matx[k+j]+5
k = k+3
def despliegue(matx):
i = 0
j = 0
k = 0
for i in range(3):
for j in range(3):
print(matx[k+j]," ", end="")
k = k+3
print(" ")
if __name__ == '__main__':
mata = int()
mata = [int() for ind0 in range(9)]
# Llenado de Matriz
llenado(mata)
# Operaciones sobre la Matriz
operaciones(mata)
# Despliegue de matriz
despliegue(mata)