class Point:
    numPoints = 0
    
    def __init__(self,x=0,y=0):
        self.x = x
        self.y = y
        Point.numPoints = Point.numPoints + 1

    def distance_from_origin(self):
        import math
        return( math.hypot(self.x, self.y))

    def __eq__(self, other):
        if self.x == other.x and self.y == other.y:
            return True
        else:
            return False


    def __add__(self,other):
        x = self.x + other.x
        y = self.y + other.y
        retPoint = Point(x,y)
        return(retPoint)
        
    def __str__(self):
        aStr = "Point: {},{}"
        printStr = aStr.format(self.x, self.y)
        return(printStr)
        
    
    
        
