d = int(input()) a,b = list(map(int,input().split())) print(d * min(a,b))