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

if a*b <= c:

    print((a*b))

else:

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



if n*a <= b:

    print((n*a))

else:

    print(b)

    
a, b, c = list(map(int, input().split()))
if a * b <= c:
    print((a * b))
else:
    print(c)

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

-a, b, c = list(map(int, input().split())) -if a * b <= c: -    print((a * b)) +n, a, b = list(map(int, input().split())) +if n * a <= b: +    print((n * a)) -    print(c) +    print(b)