#include <iostream>
using namespace std;
//抄博友程序
int main()
{
int T;
cin>>T;
for(int o=0;o<T;o++)
{
int x,y;
cin>>x>>y;
if(x!=y && x!=y+2)
{
cout<<"No Number"<<endl;
continue;
}
if(x==y)
{
if(x%2==0)
{
cout<<x*2<<endl;
}else
{
cout<<2*x-1<<endl;
}
}else
{
if(x%2==0)
{
cout<<x*2-2<<endl;
}else
{
cout<<x*2-3<<endl;
}
}
}
return 0;
}