CF850B Arpa and a list of numbers

Description

Arpa has found a list containing $ n $ numbers. He calls a list bad if and only if it is not empty and gcd (see notes section for more information) of numbers in the list is $ 1 $ . Arpa can perform two types of operations: - Choose a number and delete it with cost $ x $ . - Choose a number and increase it by $ 1 $ with cost $ y $ . Arpa can apply these operations to as many numbers as he wishes, and he is allowed to apply the second operation arbitrarily many times on the same number. Help Arpa to find the minimum possible cost to make the list good.

Input Format

First line contains three integers $ n $ , $ x $ and $ y $ ( $ 1

Output Format

Print a single integer: the minimum possible cost to make the list good.

Explanation/Hint

In example, number $ 1 $ must be deleted (with cost $ 23 $ ) and number $ 16 $ must increased by $ 1 $ (with cost $ 17 $ ). A gcd (greatest common divisor) of a set of numbers is the maximum integer that divides all integers in the set. Read more about gcd [here](https://en.wikipedia.org/wiki/Greatest_common_divisor).