#include <iostream>
using namespace std;

string res(string s)
{
    int i = 0; 
    int j = s.length() - 1;
    while (i < j)
    {
        swap(s[i], s[j]);
        i++;
        j--;
    }
    return s;
}

int main()
{
    
    string s1;
    string s2;
    cin >> s1 >>s2;
    int a[200] = {0},b[200] = {0};
    int c[200] = {0};
    s1 = res(s1);
    s2 = res(s2);
    int len1 = s1.length();
    int len2 = s2.length();
    for (int i = 0; i <= len1 - 1; i++)
    {
        a[i] = s1[i] - '0';
    }
    for (int i = 0; i <= len2 - 1; i++)
    {
        b[i] = s2[i] - '0';
    }
    for (int i = 0; i <= len1 - 1; i++)
    {
        c[i] = a[i] + b[i];
    }
    for (int i = 0; i <= len1 - 1; i++)
    {   
        if (c[i] >= 10)
        {
            c[i] = c[i] - 10;
            c[i + 1]++;
        }
    }
    
    for (int i = len1 - 1; i >= 0; i--)
    {
        cout << c[i];
    }
    return 0;
}