#include <iostream>

class Memo {
	int _flag;
	Memo(int f) :_flag{ f } {}
public:
	Memo() :_flag{ 0 } {}
	Memo use(int unuse) const {
		return Memo(_flag | (1 << unuse));
	}
	class Memo_iterator {
		int _flag, _n;
	public:
		Memo_iterator(int f, int n) :_flag{ f }, _n{ n } {}
		int operator*() const {
			return _n;
		}
		Memo_iterator operator++() {
			while ((_flag & (1 << ++_n)) != 0 && _n < 10);
			return *this;
		}
		bool operator!=(const Memo_iterator &other) const {
			return _n != other._n;
		}
	};
	Memo_iterator begin() const {
		return ++Memo_iterator(_flag, -1);
	}
	Memo_iterator end() const {
		return Memo_iterator(_flag, 10);
	}
};
int f(int n, int s, const Memo memo = Memo()) {
	if (n == 0 && s == 0) return 1;
	if (n <= 0 || s <= 0) return 0;
	int sum = 0;
	for (const auto unused : memo) {
		sum += f(n - 1, s - n * unused, memo.use(unused));
	}
	return sum;
}
int main() {
	int n, s;
	while (std::cin >> n >> s) {
		std::cout << n + s << std::endl;
	}
}
