#include<bits/stdc++.h>
using namespace std;
int main()
{
int t ;
cin>>t;
for(int i=0;i<t;i++)
{
int a,b;
cin>>a>>b;
stackv;
while(a>>0 || b>>0)
{
int p=(a%10)^(b%10);
a=a/10;
b=b/10;
v.push§;
}
for(int m=v.size()-1;m>=0;m–)
{
cout<<v.top();
v.pop();
}
cout<<’\n’;
}
}
//what is the error