#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;csputn(d, len) != len) { dest.setstate(std::ios_base::badbit); } } return dest; } int main(int argc, char const *argv[]) { ll a, b;std::cin >> a >> b; __int128_t x = (__int128_t)a+b, y = (__int128_t)a*b; //std::cout << x << " " << y << '\n'; __int128_t g = gcd(x, y); std::cout << g << '\n'; }