#include<bits/stdc++.h>

using namespace std;
typedef long long ll;

#define FAST ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define mp make_pair
#define pb push_back
#define lp(i,s,f) for(ll i = s; i < ll(f); i++)
#define inF freopen("input.in", "r", stdin);
#define outF freopen("output.in", "w", stdout);
#define endl '\n'
#define MOD 1000000007
#define mm(arr) memset(arr, 0, sizeof(arr))

int main(){
    FAST
    int arr[3];
    for(int i = 0; i < 3; i++){
        cin >> arr[i];
    }
    sort(arr, arr + 3);
    cout << arr[0] + arr[1];
    return 0;
}

#include <iostream>
#include <algorithm>

int main()
{
    int n;
    int64_t a, b;
    std::cin >> n >> a >> b;
    int x;
    std::cin >> x;

    int64_t sum = 0;
    for (int i = 1; i < n; ++i)
    {
        int y;
        std::cin >> y;
        sum += std::min((y - x) * a, b);

        x = y;
    }

    std::cout << sum << std::endl;
    return 0;
}
