def ab(a,b):
rangA = 1
rangB = 11
ans = a+b
if ans <= rangB:
return ans
else:
c = b - (rangB-a)
a = 0
ab(a,c)
z = 11 #основание
def ab(a,b):
res = (a + b) % z
if res == 0:
return z
else:
return res