#include #define endl enjoy_codeforces using lint=long long; int main(){ std::cin.tie(nullptr);std::ios_base::sync_with_stdio(false); lint a=1,b=1; lint n;std::cin>>n; lint x; for(lint i=0;i>x; (i?b:a)*=x; } std::cin>>n; for(lint i=0;i>x; (i%2?a:b)*=x; } if(a<0)a=-a,b=-b; lint g=std::__gcd(a,b); std::cout<