# a = int(input())
#
# b = [[0 for i in range(a)] for j in range(a)]
# c = 0
#
# for i in range(a):
#     for j in range(a):
#         if b[i][j] == 0:
#             for di in range(-1, 2):
#                 for dj in range(-1, 2):
#                     ai = i + di
#                     aj = i + dj
#                     if 0 <= ai < a and 0 <= aj < a:
#                         a[i][j] += 1
#
#
# print(b) 

# if __name__ == '__main__':
#     main()
