#include<stdio.h>
typedef struct product{
    int ID;
    char prodname[20];
    float price;
}dhar;
int main(){
    int size;
    int ind;
    float total=0;
    if(size<0)
    {
        printf("Invalid input");
        return 0;
    }
    dhar order[size];
    for(ind=0;ind<size;ind++){
        scanf("%d",&order[ind].prodname);
        scanf("%s",order[ind].ID);
        scanf("%f",&order[ind].price);
    }
    for(ind=0;ind<size;ind++){
        total+=order[ind].price;
    }
    printf("%.2f",total);
    return 0;
}