func main() var d: int :: cui@inputInt() var a: int :: cui@inputInt() var b: int :: cui@inputInt() var ans: int :: lib@min(a, b) * d do cui@print("\{ans}\n") end func