#include #include using mint = atcoder::static_modint<998244353>; //using mint = atcoder::static_modint<1000000007>; using namespace std; using namespace atcoder; using ld = long double; using ll = long long; #define mp(a,b) make_pair(a,b) #define rep(i,s,n) for(int i=s; i dx{1,0,-1,0},dy{0,1,0,-1}; int main(){ int n; cin >> n; vector a(n); rep(i,0,n)cin >> a[i]; ll g=0; cout << g << "\n"; rep(i,1,n){ g=gcd(g,a[i]-a[i-1]); cout << g << "\n"; } }