#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, v; cin >> n; vector a(n); for(auto &&v : a) cin >> v; sort(a.begin(), a.end()); for(int i = 0; i < n; i++){ if((a[i] - a[0]) % n != 0){ cout << "No\n"; exit(0); } } cout << "Yes\n"; }