#include <stdio.h>

// Function to calculate total euros in the jar
double calculate_total_euros(int two_euro, int one_euro, int fifty_cent, int twenty_cent, int ten_cent, int five_cent, int two_cent, int one_cent) {
    double total = 0.0;

    total += two_euro * 2.0;       // 2-euro coins
    total += one_euro * 1.0;       // 1-euro coins
    total += fifty_cent * 0.5;      // 50-cent coins
    total += twenty_cent * 0.2;     // 20-cent coins
    total += ten_cent * 0.1;        // 10-cent coins
    total += five_cent * 0.05;      // 5-cent coins
    total += two_cent * 0.02;       // 2-cent coins
    total += one_cent * 0.01;       // 1-cent coins

    return total;
}

int main() {
    // Example input values
    int two_euro = 5;
    int one_euro = 2;
    int fifty_cent = 2;
    int twenty_cent = 5;
    int ten_cent = 15;
    int five_cent = 0;
    int two_cent = 0;
    int one_cent = 2;

    // Call the function
    double total = calculate_total_euros(two_euro, one_euro, fifty_cent, twenty_cent, ten_cent, five_cent, two_cent, one_cent);

    // Output the result
    printf("Total money in the jar: %.2f Euros\n", total);

    return 0;
}
