package main import . "fmt" func main() { var d,a,b int Scan(&d,&a,&b) x := 0 if a < b { x = d } c := a*x + (d-x)*b Println(c) }