import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Ideone {
while (reader.ready()) {
char c = (char)reader.read();
}
}
}
aW1wb3J0IGphdmEuaW8uQnVmZmVyZWRSZWFkZXI7CmltcG9ydCBqYXZhLmlvLklPRXhjZXB0aW9uOwppbXBvcnQgamF2YS5pby5JbnB1dFN0cmVhbVJlYWRlcjsKCmNsYXNzIElkZW9uZSB7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB0aHJvd3MgSU9FeGNlcHRpb24gewogICAgICAgIEJ1ZmZlcmVkUmVhZGVyIHJlYWRlciA9IG5ldyBCdWZmZXJlZFJlYWRlcihuZXcgSW5wdXRTdHJlYW1SZWFkZXIoU3lzdGVtLmluKSk7CiAgICAgICAgd2hpbGUgKHJlYWRlci5yZWFkeSgpKSB7CiAgICAgICAgCWNoYXIgYyA9IChjaGFyKXJlYWRlci5yZWFkKCk7CiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnQoYyk7CiAgICAgICAgfQogICAgfQp9