import math

def modulus(n):
    m=n.real**2+n.imag**2
    if math.sqrt(m) % 1 == 0:
        return str(math.sqrt(m))
    else:
        return "√"+str(m)

def conjugate(n):
    return n.real-n.imag

def exForm(n):
    m=modulus(n)
    th=str(math.atan(n.imag/n.real)/math.pi)
    return m+"e^(i"+th+"π)"

def polForm(n):
    m=modulus(n)
    th=str(math.atan(n.imag/n.real)/math.pi)
    return m+"(cos("+th+"π)+isin("+th+"π))"

print(exForm(2-2j))
print(polForm(2-2j))
print(exForm(4-3j))
print(polForm(4-3j))
