#include<bits/stdc++.h>
#define N 1000 
using namespace std;
int main(){
string sa,sb;
int la,lb,i;
int a[N]={0},b[N]={0},c[N]={0};
int lc=0,x=0;
cout<<"----------------------------------------------"<<endl;
cout<<"欢迎来到加法计算器,可执行1000位的整数数字相加"<<endl;
cout<<"----------------------------------------------"<<endl; 
while(1){
	cout<<"输入2个加数(无需运算符):";
	cin>>sa>>sb;
	la=sa.size();
	lb=sb.size();
	for(i=0;i<la;i++){
		a[i]=sa[la-1-i]-'0';
	}
	for(i=0;i<lb;i++){
		b[i]=sb[lb-1-i]-'0';
	}
	for(lc=0;lc<la||lc<lb;lc++){
		c[lc]=a[lc]+b[lc]+x;
		x=c[lc]/10;
		c[lc]=c[lc]%10;
	}
	c[lc]=x;
	if(c[lc]==0){
		lc--;
	}
	cout<<sa<<"+"<<sb<<"=";
	for(i=lc;i>=0;i--){
		cout<<c[i];
	}
	cout<<endl;
}
return 0;
}