/* Running in TC 2.0 */
#include <stdio.h>
#include <string.h>
main()
{
int i,len;
double f = 0, k = 1;
char scr[20],dest[20];
gets(scr); /* input the string */
len = strlen(scr);
strncpy(dest,scr, len-4); /* Copy the first len-4 characters into integer */
i = atoi(dest); /* convert into integer*/
/* Convert the othes into float */
for( ; k > 0.0001 ; len--, k /= 10 )
f += (scr[len]-'0')*k;
printf("\n%.4f\n",i+f); /* output the Result */
}