#include <iostream>

using namespace std;

int main() {
	int a, b, c,i, j;
	cin >> a >> b;
	for (i = 0; a < 10; i++) { c = a / 10; a = c; }
	for (j = 0; b < 10; j++) { c = b / 10; b = c; }
	c = a + b;
	cout << c << endl;
	return 0;
}