import numpy as np
import matplotlib.pyplot as plt
eqn = input()
y_list = []
x_list = np.linspace(-10, 10, 201)
for x in range(len(x_list)):
eqn_list = list(eqn)
for i in range(0, len(eqn_list)):
if eqn_list[i] == 'x':
eqn_list[i] = str(x_list[x])
y = ''.join(eqn_list)
print(eval(y), x_list[x])
y_list.append(eval(y))
plt.grid()
plt.plot(x_list, y_list)
plt.show()