// editor2
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
struct Node{
    float data;
    struct Node*next;
};
struct Node*create(float val){
    struct Node*n=malloc(sizeof(struct Node));
    n->data=val;
    n->next=NULL;
    return n;
}
int main(){
    struct Node*head=NULL,*tail=NULL;
    while(scanf("%s",input)){
        if(strcmp(input,"end")==0)
        break;
        char*endptr;
        float val=strtof(input,&endptr);
        if(*enptr!='\0')
        {
            printf("Invalid input");
            return 0;
        }
        struct Node*newNode=create(val);
        if(!=head)head=tail=newNode;
        else tail->next=newNode,tail=newNode;
    }
    struct Node*temp=head;
    while(temp)
    {
        sum+=temp->data;
        temp=temp->next;
    }
    printf("%.1f",sum);
    return 0;
}