class Solution:
    def countOperations(self, num1: int, num2: int) -> int:
        res = 0
        while num1 != 0 and num2 != 0:
            if num1 >= num2:
                num1 = num1 - num2
            else:
                num2 = num2 - num1
            res += 1
        return res


if __name__ == '__main__':
    sol = Solution()
    func = sol.countOperations
    print(func(2, 3))
