// http://www.spoj.com/problems/NSTEPS/
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main(int argc, char* argv[]) {
int testnum;
cin >> testnum;
while (testnum-- > 0) {
int x,y;
cin >> x >> y;
bool atLine1 = (x==y);
bool atLine2 = ((x-y) == 2);
if (atLine1 || atLine2) {
int number;
if (x%2==0) {
if (y<x) {
number = x*2 - 2;
} else {
number = x*2;
}
} else {
if (x==y) {
number = 1 + 4*(x/2);
} else {
number = 4*(x/2) -1;
}
}
cout << number << endl;
}
else {
cout << "No Number" << endl;
}
}
}