class Ex1p1p18:

    def mystery(self, a: int, b: int) -> int:
        if b == 0:
            return 0
        if b % 2 == 0:
            return self.mystery(a + a, b // 2)
        return self.mystery(a + a, b // 2) + a


if __name__ == "__main__":
    driverObj = Ex1p1p18()
    print(driverObj.mystery(2, 25))

d1f01b4b70e1b46dd5a4f5a6b63eae0a99d9f9e5
<mask token>

class Ex1p1p18:
    <mask token>


<mask token>

class Ex1p1p18:

    def mystery(self, a: int, b: int) ->int:
        if b == 0:
            return 0
        if b % 2 == 0:
            return self.mystery(a + a, b // 2)
        return self.mystery(a + a, b // 2) + a


<mask token>

class Ex1p1p18:

    def mystery(self, a: int, b: int) ->int:
        if b == 0:
            return 0
        if b % 2 == 0:
            return self.mystery(a + a, b // 2)
        return self.mystery(a + a, b // 2) + a


if __name__ == '__main__':
    driverObj = Ex1p1p18()
    print(driverObj.mystery(2, 25))

class Ex1p1p18:

    def mystery(self, a: int, b: int) -> int:
        if b == 0:
            return 0
        if b % 2 == 0:
            return self.mystery(a + a, b // 2)
        return self.mystery(a + a, b // 2) + a


if __name__ == "__main__":
    driverObj = Ex1p1p18()
    print(driverObj.mystery(2, 25))
