#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
int t, n, m, k, l, r, op, x, y;
void solve() {
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> x >> y;
if(x==y||x-2==y){
k = x*2-x%2;
if(x-2==y)k-=2;
cout<<k;
}else{
cout<<"No Number";
}
cout<<"\n";
}
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
solve();
return 0;
}