#include using namespace std; using ll = long long; #define rep(i,n) for(int i=0;i<(int)(n);i++) int main(){ int n; cin>>n; vector a(n); rep(i,n) cin>>a.at(i); sort(a.begin(),a.end()); rep(i,n-1){ if((a.at(i+1)-a.at(i))%n!=0){ cout<<"No\n"; return 0; } } cout<<"Yes\n"; }