import java.io.*;
class A{
public static void main
(String[] args
){ try{
f();
}
}
static void f(){
g();
}
static void g(){
}
}
class Thrower{
private static ThreadLocal<Exception> tl = new ThreadLocal<Exception>();
tl.remove();
throw e;
}
try{
tl.set(ex);
Thrower.class.newInstance();
}
}
}
aW1wb3J0IGphdmEuaW8uKjsKCmNsYXNzIEF7CiAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncyl7CiAgICB0cnl7CiAgICAgIGYoKTsKICAgICAgaWYoZmFsc2Upe3Rocm93KElPRXhjZXB0aW9uKW51bGw7fQogICAgfQogICAgY2F0Y2goSU9FeGNlcHRpb24gZSl7ZS5wcmludFN0YWNrVHJhY2UoKTt9CiAgfQogIHN0YXRpYyB2b2lkIGYoKXsKICAgIGcoKTsKICB9CiAgc3RhdGljIHZvaWQgZygpewogICAgVGhyb3dlci50aHJvdzIobmV3IElPRXhjZXB0aW9uKCJpbyIpKTsKICB9Cn0KCmNsYXNzIFRocm93ZXJ7CiAgcHJpdmF0ZSBzdGF0aWMgVGhyZWFkTG9jYWw8RXhjZXB0aW9uPiB0bCA9IG5ldyBUaHJlYWRMb2NhbDxFeGNlcHRpb24+KCk7CiAgcHJpdmF0ZSBUaHJvd2VyKCl0aHJvd3MgRXhjZXB0aW9uewogICAgRXhjZXB0aW9uIGUgPSB0bC5nZXQoKTsKICAgIHRsLnJlbW92ZSgpOwogICAgdGhyb3cgZTsKICB9CiAgcHVibGljIHN0YXRpYyB2b2lkIHRocm93MihFeGNlcHRpb24gZXgpewogICAgaWYoZXg9PW51bGwpe3Rocm93IG5ldyBJbGxlZ2FsQXJndW1lbnRFeGNlcHRpb24oImV4PT1udWxsIik7fQogICAgaWYoZXggaW5zdGFuY2VvZiBSdW50aW1lRXhjZXB0aW9uKXt0aHJvdyAoUnVudGltZUV4Y2VwdGlvbilleDt9CiAgICB0cnl7CiAgICAgIHRsLnNldChleCk7CiAgICAgIFRocm93ZXIuY2xhc3MubmV3SW5zdGFuY2U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