from math import gcd N = int(input()) A = list(map(int, input().split())) g = 0 print(g) for i in range(N - 1): g = gcd(g, A[i + 1] - A[i]) print(g)