d = int(input()) a, b = map(int, input().split()) if a == b: print(b*d) elif a > b: print(b*d) else: print(a*d)