import numpy as np if __name__ == "__main__": N = int(input().strip()) F_c = list(map(float, input().strip().split())) F = np.poly1d(F_c) H = F(np.poly1d([1.0, -1.0])) H_c = H.coeffs.astype(int) print(" ".join(map(str, H_c)))