N=int(input('Enter table size: '))
K=int(input('Enter K var: :'))
l=[[random.randint(-10,10) for i in range(N)] for i in range(N)]
s=0
for i in l:
for p in i:
if p>K: s+=p
print(s)
N=int(input('Enter table size: '))
K=int(input('Enter K var: :'))
l=[[random.randint(-10,10) for i in range(N)] for i in range(N)]
s=0
for i in l:
for p in i:
if p>K: s+=p
print(s)