a = int(split_text[0])
b = int(split_text[1])
if b > 0:
    num_times = b
else:
    num_times = -b
total = 0
for i in range(num_times):
    total += a
if b < 0:
    total = -total
print(total)
working with negative numbers in python