package main import ( "bufio" "fmt" "os" ) func main() { inventories := parse(*bufio.NewScanner(os.Stdin)) largestInventoryTotal := 0 for _, inventory := range inventories { currentTotal := inventory.getTotal() if currentTotal > largestInventoryTotal { largestInventoryTotal = currentTotal } } fmt.Println(largestInventoryTotal) }