from numpy import*

v = array(eval(input("digite o coeficientes: ")))
v1 = ''
a = size(v)
i = 0
b = 0

while	(i  != a ):
		v1= v1 + str(v[i]) +'x^' + str() + " + "
		i = i + 1
		b = a - 1
		
f = str(v[-1])
j = str(v[-2])


print(v1)