import java.util.Scanner;
public class Main {
public static void main
(String[] args
) { Scanner scanner
= new Scanner
(System.
in);
int t = scanner.nextInt(); // number of test cases
while (t-- > 0) {
int n = scanner.nextInt(); // length of s
String s
= scanner.
next(); // binary string s String r
= scanner.
next(); // binary string r
// Check if we can perform the operation by finding adjacent differing bits
boolean canPerformOperations = false;
// Traverse s and check for adjacent differing bits
for (int i = 0; i < n - 1; i++) {
if (s.charAt(i) != s.charAt(i + 1)) {
canPerformOperations = true;
break;
}
}
// If there's at least one adjacent differing pair, we can perform operations
if (canPerformOperations) {
} else {
}
}
scanner.close();
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwoKcHVibGljIGNsYXNzIE1haW4gewoKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKICAgICAgICBTY2FubmVyIHNjYW5uZXIgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgICAgIAogICAgICAgIGludCB0ID0gc2Nhbm5lci5uZXh0SW50KCk7IC8vIG51bWJlciBvZiB0ZXN0IGNhc2VzCiAgICAgICAgd2hpbGUgKHQtLSA+IDApIHsKICAgICAgICAgICAgaW50IG4gPSBzY2FubmVyLm5leHRJbnQoKTsgLy8gbGVuZ3RoIG9mIHMKICAgICAgICAgICAgU3RyaW5nIHMgPSBzY2FubmVyLm5leHQoKTsgLy8gYmluYXJ5IHN0cmluZyBzCiAgICAgICAgICAgIFN0cmluZyByID0gc2Nhbm5lci5uZXh0KCk7IC8vIGJpbmFyeSBzdHJpbmcgcgoKICAgICAgICAgICAgLy8gQ2hlY2sgaWYgd2UgY2FuIHBlcmZvcm0gdGhlIG9wZXJhdGlvbiBieSBmaW5kaW5nIGFkamFjZW50IGRpZmZlcmluZyBiaXRzCiAgICAgICAgICAgIGJvb2xlYW4gY2FuUGVyZm9ybU9wZXJhdGlvbnMgPSBmYWxzZTsKICAgICAgICAgICAgCiAgICAgICAgICAgIC8vIFRyYXZlcnNlIHMgYW5kIGNoZWNrIGZvciBhZGphY2VudCBkaWZmZXJpbmcgYml0cwogICAgICAgICAgICBmb3IgKGludCBpID0gMDsgaSA8IG4gLSAxOyBpKyspIHsKICAgICAgICAgICAgICAgIGlmIChzLmNoYXJBdChpKSAhPSBzLmNoYXJBdChpICsgMSkpIHsKICAgICAgICAgICAgICAgICAgICBjYW5QZXJmb3JtT3BlcmF0aW9ucyA9IHRydWU7CiAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgCiAgICAgICAgICAgIC8vIElmIHRoZXJlJ3MgYXQgbGVhc3Qgb25lIGFkamFjZW50IGRpZmZlcmluZyBwYWlyLCB3ZSBjYW4gcGVyZm9ybSBvcGVyYXRpb25zCiAgICAgICAgICAgIGlmIChjYW5QZXJmb3JtT3BlcmF0aW9ucykgewogICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJZRVMiKTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiTk8iKTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICAKICAgICAgICBzY2FubmVyLmNsb3NlKCk7CiAgICB9Cn0K