':type c: int
:rtype: bool'

def judgeSquareSum(self, c):

    for a in xrange((int(math.sqrt(c)) + 1)):
        b = int(math.sqrt((c - (a ** 2))))
        if (((a ** 2) + (b ** 2)) == c):
            return True
    return False
