d = input() a, b = input().split() d = int(d) a = int(a) b = int(b) if a < b: cost = a * d else: cost = b * d print(cost)