#include <stdio.h>

// Define structure for product
struct product {
    char name[50];
    int id;
    float price;
};
int main() {
    int n;
    scanf("%d", &n);
    
    // Invalid input check
    if (n <= 0) {
        printf("Invalid input");
        return 0;
    }
    
    struct product products[n];
    float total = 0;
    
    // cRead product details
    for (int i = 0; i < n; i++) {
        
        scanf("%s", products[i].name);
        scanf("%d", &products[i].id);
        scanf("%f",&products[i].price);
        
        total += products.price;
    }
    
    printf("%.2f", total);
    return 0;
}