class Main
{
public static void main
(String[] args
) {
java.
util.
Scanner in
= new java.
util.
Scanner(System.
in); int t = in.nextInt();
for (int i = 0; i < t; i++)
{
int n = in.nextInt();
System.
out.
println((2 * l
<= 1) ? 1 : 2); }
}
}
Y2xhc3MgTWFpbgp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgCgl7CgkJamF2YS51dGlsLlNjYW5uZXIgaW4gPSBuZXcgamF2YS51dGlsLlNjYW5uZXIoU3lzdGVtLmluKTsKCQlpbnQgdCA9IGluLm5leHRJbnQoKTsKCQlmb3IgKGludCBpID0gMDsgaSA8IHQ7IGkrKykgCgkJewoJCQlpbnQgbiA9IGluLm5leHRJbnQoKTsKCQkJZG91YmxlIGwgPSBuIC8gTWF0aC5wb3coMTgsIE1hdGguY2VpbChNYXRoLmxvZyhuKSAvIE1hdGgubG9nKDE4KSkpOwoJCQlTeXN0ZW0ub3V0LnByaW50bG4oKDIgKiBsIDw9IDEpID8gMSA6IDIpOwoJCX0KCX0KfQ==