#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; vector<__int128_t> base; for(int i=0; i> d; __int128_t now = 0; int one = (i+d)%N,two = ((i-d)%N+N)%N; now += ((__int128_t)1)<> w; if(w == 0) W += p2; p2 <<= 1; } for(auto b : base) W = min(W,W^b); if(W == 0) cout << "Yes\n"; else cout << "No\n"; }