import math
data = open('1.txt', 'r').read().split('\n')
totalFuel = 0
for mass in map(int, data):
    newFuel = math.floor(mass / 3) - 2
    while newFuel > 0:
        totalFuel += newFuel
        newFuel = math.floor(newFuel / 3) - 2
print(totalFuel)

9b8f9a41351f43fa4872c7e712586c5c162712d6
<mask token>

<mask token>
for mass in map(int, data):
    newFuel = math.floor(mass / 3) - 2
    while newFuel > 0:
        totalFuel += newFuel
        newFuel = math.floor(newFuel / 3) - 2
print(totalFuel)

<mask token>
data = open('1.txt', 'r').read().split('\n')
totalFuel = 0
for mass in map(int, data):
    newFuel = math.floor(mass / 3) - 2
    while newFuel > 0:
        totalFuel += newFuel
        newFuel = math.floor(newFuel / 3) - 2
print(totalFuel)

import math
data = open('1.txt', 'r').read().split('\n')
totalFuel = 0
for mass in map(int, data):
    newFuel = math.floor(mass / 3) - 2
    while newFuel > 0:
        totalFuel += newFuel
        newFuel = math.floor(newFuel / 3) - 2
print(totalFuel)
