תשובה אחת
(()amount = int(input
price = int(input())
if amount <= 50:
print(amount*price)
else:
print((amount - 2) * price)