num = int(input("Введите число: "))
if ((num > 100) and (num%5 != 0)):
num **= 3
elif ((num < 200) or (num%3 == 0)):
num = abs(num)
else:
num -= 50
print(num)
num = int(input("Введите число: "))
if ((num > 100) and (num%5 != 0)):
num **= 3
elif ((num < 200) or (num%3 == 0)):
num = abs(num)
else:
num -= 50
print(num)