text: #include<iostream>
  #include<cstdlib>
  #include<cstdio>
  #include<cmath>
  #include<cstring>
  #include<string>
  #include<cstdlib>
  #include<iomanip>
  #include<algorithm>
  #include<time.h>
  typedef long long LL;
  using namespace std;
  
  int main()
  {
  	int a,b; int sum;
  	while(~scanf("%x %x",&a,&b))
  	{
  		printf("%d\n",a+b);
  	}
      return 0;
  
  }