N,A,B = list(map(int, input().split()))

print((min(N*A, B)))
N, A, B = list(map(int, input().split()))



train = N*A

taxi = B



print((min(train, taxi)))
N, A, B = list(map(int, input().split()))
print((min(N * A, B)))

N, A, B = list(map(int, input().split()))
train = N * A
taxi = B
print((min(train, taxi)))

-print((min(N * A, B))) +train = N * A +taxi = B +print((min(train, taxi)))