def divide(x, y, use_floor=False):
    """
    Divides two number
    :param x: dividend
    :param y: divisor
    :param use_floor: flag to use floor division
    :return: division of two numbers
    """
    if use_floor:
        return x // y
    return x / y