#include <iostream>
using namespace std;

int main() {
    int t;
    cin>>t;
    int a, b;
    //while (t--)  后自减的方法更简洁:t=0的时候就跳出循环了
    for (int i =0; i<t; i++) {		//for循环是while的等价写法,更加通俗易懂,容易想到这个
        cin>>a>>b;
        cout<<a+b<<endl;
    }
}
// 64 位输出请用 printf("%lld")