#include <iostream> using namespace std; int main(){ int N; long long M; cin >> N >> M; cout << N%10 + M%10; return 0; } N = 12 && M = 13  result = 5