def __str__(self):
    x = self.F.rep
    if (x == None):
        x = 'X'
    s = '('
    if (self.deg == 1):
        s = (s + str(self.coef[0]))
    if (self.deg == 2):
        s = (((((s + str(self.coef[0])) + '*') + x) + ' + ') + str(self.coef[1]))
    if (self.deg > 2):
        s = (((((s + str(self.coef[0])) + '*') + x) + '**') + str((self.deg - 1)))
        for i in range(1, (self.deg - 2)):
            s = ((((((s + ' + ') + str(self.coef[i])) + '*') + x) + '**') + str(((self.deg - 1) - i)))
        s = ((((((s + ' + ') + str(self.coef[(self.deg - 2)])) + '*') + x) + ' + ') + str(self.coef[(self.deg - 1)]))
    return (s + ')')
def __str__(self):
    x = self.F.rep
    if (x == None):
        x = 'X'
    s = '('
    if (self.deg == 1):
        s = (s + str(self.coef[0]))
    if (self.deg == 2):
        s = (((((s + str(self.coef[0])) + '*') + x) + ' + ') + str(self.coef[1]))
    if (self.deg > 2):
        s = (((((s + str(self.coef[0])) + '*') + x) + '**') + str((self.deg - 1)))
        for i in range(1, (self.deg - 2)):
            s = ((((((s + ' + ') + str(self.coef[i])) + '*') + x) + '**') + str(((self.deg - 1) - i)))
        s = ((((((s + ' + ') + str(self.coef[(self.deg - 2)])) + '*') + x) + ' + ') + str(self.coef[(self.deg - 1)]))
    return (s + ')')