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

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

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

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

-print((min(n * a, b))) +print((min(a * n, b)))