d = int(input()) a,b = map(int,input().split()) if a == b: print((a+b)*d//2) else: print(min([a,b]) * d)