#include <iostream>
#include<string.h>
using namespace std;
int main()
{
char sign[2];
char str[10000],exp[10];
int i=0;
scanf("%s",str);
sign[0]=str[i++]; //系数符号
while(str[i]!='E') i++;
sign[1]=str[++i]; //指数符号
i++;
strcpy(exp,str+i); //指数部分
int cnt,flag=0;
sscanf(exp,"%d",&cnt); //指数绝对值
if(sign[0]=='-') printf("%c",sign[0]); //sign
if(sign[1]=='-'&&cnt!=0) flag=1; //-
if(flag==1){ // -
printf("0.");
cnt--;
while(cnt!=0){
printf("0");
cnt--;
}
i=1;
while(str[i]!='E'){
if(str[i]=='.'){
i++;
continue;
} //跳过小数点
printf("%c",str[i]);
i++;
}
}else{ //+
i=1; //integer portion
printf("%c",str[i]);
i+=2;
while(cnt!=0&&str[i]!='E'){
printf("%c",str[i++]);
cnt--;
}
while(cnt!=0){
printf("0");
cnt--;
}
if(str[i]!='E'){
printf(".");
while(str[i]!='E'){
printf("%c",str[i++]);
}
}
}
return 0;
}
乱就乱吧我真不想写字符串的题了