n,a,b = list(map(int, input().split()))

den = n * a

tax = b

print((tax if tax<den else den))
n,a,b=list(map(int,input().split()))

print((min(a*n,b)))
n, a, b = list(map(int, input().split()))
den = n * a
tax = b
print((tax if tax < den else den))

n, a, b = list(map(int, input().split()))
print((min(a * n, b)))

-den = n * a -tax = b -print((tax if tax < den else den)) +print((min(a * n, b)))