def min(a, b):
if (a > b):
return a
else:
return b
a = raw_input()
b = raw_input()
z = min(3*a, 2*b)+min(a-b, a+b)
print z
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def min(a, b):
if (a > b):
return a
else:
return b
a = raw_input()
b = raw_input()
z = min(3*a, 2*b)+min(a-b, a+b)
print z