#include <iostream> #include <algorithm> #include <cmath> using LL = long long; using namespace std; LL a,b,x,y; LL ceil_div(LL n,LL m) { if(n <= 0) return 0; return (n + m -1) / m; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); if(!(cin >> a >> b >...