a = int(input()) b = int(input()) print("a = ",a) print("b = ",b) if a == 0: print("Phuong trinh v nghiem!") else: x = -b/a print(f"Nghiem cua phuong trinh {a}x + {b} = 0 la: ", x)