class area:
    def __init__(self, m1, m2):  # initialization
        self.l = m1
        self.b = m2

    def __gt__(self, other):  # comparing the two objects
        r1 = self.l * self.b
        r2 = other.l * other.b
        if (r1 > r2):
            return True
        else:
            return False


s1 = area(1, 1)
s2 = area(2, 2)
if (s1 > s2):
    print("area of rect1 is greatr")
else:
    print("area of rect2 is greater")