#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(x,y) for(int x = 0;x < (y);x++) #define LLI long long int #define FORR(x,arr) for(auto& x:arr) #define ALL(a) (a.begin()),(a.end()) #define _L(x) cout<<(x)<> A >> B; LLI sum = 0; if(A > B) { LLI value =(A - B - 1L); sum += value > 0 ? value : 0; sum += 2000000000 - A; cout << sum << endl; return 0; } else { LLI value =(B - A - 1L); sum += value > 0 ? value : 0; sum += A - 1; cout << sum << endl; return 0; } }