import math

def mass_fuel_calculator(input):
    return math.floor(input / 3) - 2

# Main method

if __name__ == '__main__':
    filepath = "inputList"
    totalFuel = 0

    with open(filepath) as fp:
        for line in fp:
            totalFuel += mass_fuel_calculator(int(line))

    print(int(totalFuel))
29cf8be26357c806e49d5c73116d3fd956dfe522
<mask token>

<mask token>


def mass_fuel_calculator(input):
    return math.floor(input / 3) - 2


<mask token>

<mask token>


def mass_fuel_calculator(input):
    return math.floor(input / 3) - 2


if __name__ == '__main__':
    filepath = 'inputList'
    totalFuel = 0
    with open(filepath) as fp:
        for line in fp:
            totalFuel += mass_fuel_calculator(int(line))
    print(int(totalFuel))

import math


def mass_fuel_calculator(input):
    return math.floor(input / 3) - 2


if __name__ == '__main__':
    filepath = 'inputList'
    totalFuel = 0
    with open(filepath) as fp:
        for line in fp:
            totalFuel += mass_fuel_calculator(int(line))
    print(int(totalFuel))

import math

def mass_fuel_calculator(input):
    return math.floor(input / 3) - 2

# Main method

if __name__ == '__main__':
    filepath = "inputList"
    totalFuel = 0

    with open(filepath) as fp:
        for line in fp:
            totalFuel += mass_fuel_calculator(int(line))

    print(int(totalFuel))