import java.util.*;
class Main
{
public static void main
(String[] args
) {
boolean[] seats = new boolean[10];
for (int i = 0; i < seats.length; ++i) {
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwoKY2xhc3MgTWFpbgp7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykKICAgIHsKICAgICAgICBib29sZWFuW10gc2VhdHMgPSBuZXcgYm9vbGVhblsxMF07CiAgICAgICAgQXJyYXlzLmZpbGwoc2VhdHMsIHRydWUpOwogICAgICAgIGZvciAoaW50IGkgPSAwOyBpIDwgc2VhdHMubGVuZ3RoOyArK2kpIHsKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHNlYXRzW2ldKTsKICAgICAgICB9CiAgICB9Cn0=