# -*- coding: utf-8 -*-
"""
Created on Sat Sep 21 20:32:58 2019
@author: debdut

Program to add and subtract two complex numbers
"""
a,b=(complex(i) for i in input("enter two complex numbers: ").split())
print("the sum is",a+b)
print("the difference is",a-b)