#include int main() { long long int a,b,c; scanf("%lld%lld%lld",&a,&b,&c); long long int ans1 = b*(a-1) - c*a; long long int ans2 = b*(a-1) + c*a; long long int ans3 = -b*(a-1) + c*(a%2); long long int ans4 = -b*(a-1) - c*(a%2); long long int ans5 = b*(a-3) - c*(a-2); long long int ans6 = -b*(a-3) + c*(a-2); long long int ans = ans1; ans = ans