import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main
{
{
String[] params1
= bufferedReader.
readLine().
split(" "); int d;
for (int j = 0; j < d; ++j){
String[] params2
= bufferedReader.
readLine().
split(" "); int n;
boolean w = false;
for (int i = 0; n>0; ++i){
if (n % 2 == 1){
if(w){
}
w = true;
}
n /= 2;
}
}
}
}
aW1wb3J0IGphdmEuaW8uQnVmZmVyZWRSZWFkZXI7CmltcG9ydCBqYXZhLmlvLklucHV0U3RyZWFtUmVhZGVyOwoKY2xhc3MgTWFpbgp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlCdWZmZXJlZFJlYWRlciBidWZmZXJlZFJlYWRlciA9IG5ldyBCdWZmZXJlZFJlYWRlcihuZXcgSW5wdXRTdHJlYW1SZWFkZXIoU3lzdGVtLmluKSk7CgkJU3RyaW5nW10gcGFyYW1zMSA9IGJ1ZmZlcmVkUmVhZGVyLnJlYWRMaW5lKCkuc3BsaXQoIiAiKTsKCQlpbnQgZDsKCQlkID0gSW50ZWdlci5wYXJzZUludChwYXJhbXMxWzBdKTsKCQlmb3IgKGludCBqID0gMDsgaiA8IGQ7ICsrail7IAoJCQlTdHJpbmdbXSBwYXJhbXMyID0gYnVmZmVyZWRSZWFkZXIucmVhZExpbmUoKS5zcGxpdCgiICIpOwoJCQlpbnQgbjsgCgkJCWJvb2xlYW4gdyA9IGZhbHNlOwoJCQluID0gSW50ZWdlci5wYXJzZUludChwYXJhbXMyWzBdKTsKCQkJZm9yIChpbnQgaSA9IDA7IG4+MDsgKytpKXsKCQkJCWlmIChuICUgMiA9PSAxKXsKCQkJCQlpZih3KXsKCQkJCQkJU3lzdGVtLm91dC5wcmludCgiICIpOwoJCQkJCX0KCQkJCQl3ID0gdHJ1ZTsKCQkJCQlTeXN0ZW0ub3V0LnByaW50KGkpOwoJCQkJfQoJCQkJbiAvPSAyOwoJCQl9CgkJCVN5c3RlbS5vdXQucHJpbnQoIlxuIik7CgkJfQoJfQp9