#include using namespace std; int gcd(int x,int y){ return ((y<=0) ? abs(x) :gcd(y,x%y)); } int main(){ int n1,n2; long A; cin >> n1 >> A; int a[n1-1]; for(int i=0;i> a[i]; } long B; cin >> n2>>B; int b; for(int i=0;i> b; if(i%2==0){ A=A*b; //cout << "A=" << A <