function main() a, b, c = int(inputs()) println(min(a * c, b)) end # --------input func---------- input() = readline() inputs() = split(readline()) int(s::AbstractChar) = parse(Int, s) int(s::AbstractString) = parse(Int, s) int(v::AbstractArray) = map(x -> parse(Int, x), v) debug(x...) = println(stderr, x...) isfile("myinput.txt") && (mystdin = open("myinput.txt", "r"); redirect_stdin(mystdin)) main() @isdefined(mystdin) && close(mystdin)