%{
#include <stdlib.h>
long sum = 0;
%}

%%
[0-9]*          sum += atof(yytext);
[ \n.]              ;
<<EOF>>        { printf("%ld\n",sum); exit(0); }
%%  




