#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
int temp;
temp=(a/10+b/10)%10;
cout<<temp;
temp=(a%10+b%10)%10;
cout<<temp;
return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
int temp;
temp=(a/10+b/10)%10;
cout<<temp;
temp=(a%10+b%10)%10;
cout<<temp;
return 0;
}