main = do
    ns <- fmap(read :: String -> Int) . words <$> getContents
    let n = head ns
    let a = head $ tail ns
    let b = last ns
    let pa = n * a
    if pa < b then
      putStrLn $ show $ pa    
    else
      putStrLn $ show $ b