import java.util.Scanner;
public class WaterTracker {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double totalWater = 0;
        double waterIntake;
        while (true) {
            if (scanner.hasNextDouble()) {
                waterIntake = scanner.nextDouble();
                if (waterIntake < 0) {
                    break;
                }
                totalWater += waterIntake;
            } else {
                System.out.println("Invalid input");
               return;
                scanner.next(); 
            }
        }
        System.out.printf("Total liters of water consumed: %.2f liters%n", totalWater);
    }
}