def get_fuel_from(mass: int) -> int:
    """Gets fuel from mass.

    Args:
        mass (int): mass for the fuel

    Returns:
        int: fuel necessary for the mass

    """
    return mass // 3 - 2