#include #include #include #include #include #include using namespace std; #define int long long #define rep(i,n) for(int i = 0; i < (n); i++) #define INF ((long long)1e18) #define MOD ((int)1e9+7) #define endl "\n" #define yn(f) ((f)?"Yes":"No") #define YN(f) ((f)?"YES":"NO") #define MAX signed main(){ cin.tie(0); ios::sync_with_stdio(false); cout<>A>>B; if(B > A) swap(A,B); for(int i = A-B, j; i <= (A+B)*(A+B); i+= A){ if((A+B)%i == 0){ if((i+A)%B == 0 && (i+B)%A == 0 && A != i && B != i){ cout<