#include<bits/stdc++.h>
using namespace std;
int main() { int a,b,c,n; cin>>a>>b; int mid=0,a1=a,b1=b,m=0; while(a1>0) { mid=mid10+a1%10; a1/=10; } while(b1>0) { m=m10+b1%10; b1/=10; } cout<<mid+m; }