import java.util.*;
import java.lang.*;
import java.io.*;
class Main
{
{
for (int i = 0; i < n; i++)
flock[i] = r.readLine();
for (int i = n - 1; i >= 0; i--)
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCUJ1ZmZlcmVkUmVhZGVyIHIgPSBuZXcgQnVmZmVyZWRSZWFkZXIobmV3IElucHV0U3RyZWFtUmVhZGVyKFN5c3RlbS5pbikpOwoJCVN0cmluZyBOID0gci5yZWFkTGluZSgpOwoJCWludCBuID0gSW50ZWdlci5wYXJzZUludChOKTsKCQlTdHJpbmdbXSBmbG9jayA9IG5ldyBTdHJpbmdbbl07CgkJZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspCgkJCWZsb2NrW2ldID0gci5yZWFkTGluZSgpOwoJCWZvciAoaW50IGkgPSBuIC0gMTsgaSA+PSAwOyBpLS0pCgkJCVN5c3RlbS5vdXQucHJpbnQoZmxvY2tbaV0pOwoJfQp9