#include #include #include using namespace std; using namespace atcoder; using mint = modint998244353; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf32 1000000001 #define Inf64 4000000000000000001 int main(){ int Mo = 258280327; int N,M; cin>>N; vector a(N+1); rep(i,N+1){ cin>>a[i]; a[i] %= Mo; } cin>>M; vector b(M+1); rep(i,M+1){ cin>>b[i]; b[i] %= Mo; } a = convolution_ll(a,b); rep(i,a.size())a[i] %= Mo; while(a.size()>1 && a.back()==0)a.pop_back(); cout<>N>>E; if(N>=0){ long long sq = sqrtl(N); if(sq*sq==N){ cout<