// #region enum Input { static func int() -> Int { return Int(readLine()!)! } static func ints() -> (Int, Int) { readLine()!.split(separator: " ").map { Int($0)! }[0, 1] } static func ints() -> (Int, Int, Int) { readLine()!.split(separator: " ").map { Int($0)! }[0, 1, 2] } } extension Bool { func print(yes: T, no: T) { Swift.print(self ? yes : no) } } extension Int { func print() { Swift.print(self) } } extension String { func print() { Swift.print(self) } } extension Array { subscript(a: Int, b: Int) -> (Element, Element) { (self[a], self[b]) } subscript(a: Int, b: Int, c: Int) -> (Element, Element, Element) { (self[a], self[b], self[c]) } } // #endregion let (a, b, c) = Input.ints() min(a * c, b).print()