import sequtils, strutils var d, a, b: int d = stdin.readLine.parseInt (a, b) = stdin.readLine.split.map parseInt echo [b * d, a * d].min