#try to avoid input function
a = int(input())
b = int(input())
c = int(input())
if a == 13 and b == 13 and c == 13:
print(0)
elif a == 13 and b == 13:
print(c)
elif a == 13 and c == 13:
print(b)
elif b == 13 and c == 13:
print(a)
elif a == 13:
print(b+c)
elif b == 13:
print(c+a)
elif c == 13:
print(a+b)
else:
print(a+b+c)
Click the run button. Try to avoid input() function.