#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define N 100
int main(){
char str1[N],str2[N];
double s1,s2;
int a,b,flag;
FILE *fp,*fp2;
fp=fopen("1.in","r");
fp2=fopen("1.out","w");
fscanf(fp,"%s",str1);
fscanf(fp,"%s",str2);
if(strchr(str1,'.')||strchr(str2,'.')){//重点函数,次函数查询是否包含一个字符并且返回该字符的指针
s1=atof(str1);
s2=atof(str2);//注atof函数可以把科学计数法也转化成浮点数,功能是如此的强大。。。。
flag=1;
}else{
a=atoi(str1);
b=atoi(str2);
flag=0;
}
int count=0;
if(flag){
s1+=s2;
while(s1>=1){
s1/=10;
count++;
}
count--;
s1*=10;
fprintf(fp2,"%fe%d",s1,count);
}
else
fprintf(fp2,"%d",a+b);
return 0;
}