#include using namespace std; using ll=long long; constexpr int MOD=998244353; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define rep2(i,l,r) for(int i=(l);i<(int)(r);i++) int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int A,B; cin>>A>>B; int X=A*A+B*B; bool swapf=0; if(A()),ansB=ansA; int sx=0,sy=0; while(cnt