import std.stdio;
import std.string;
import std.conv;
import std.bigint;

void main()
{
	string _a = readln();
	int a = to!int(chomp(_a));
	for (uint i = 0; i < a * 2; i += 2) {
		BigInt left = chomp(readln()),
		       right = chomp(readln());
		writeln(left + right);
	}
}