/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
abstract static class Foo {
protected int x;
protected Foo(int x) {this.x = x;}
public abstract void bar();
}
{
Foo foo = new Foo(123) {
public void bar
() {System.
out.
println("hi "+x
);} };
foo.bar();
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCWFic3RyYWN0IHN0YXRpYyBjbGFzcyBGb28gewoJCXByb3RlY3RlZCBpbnQgeDsKCQlwcm90ZWN0ZWQgRm9vKGludCB4KSB7dGhpcy54ID0geDt9CgkJcHVibGljIGFic3RyYWN0IHZvaWQgYmFyKCk7Cgl9CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlGb28gZm9vID0gbmV3IEZvbygxMjMpIHsKCQkJcHVibGljIHZvaWQgYmFyKCkge1N5c3RlbS5vdXQucHJpbnRsbigiaGkgIit4KTt9CgkJfTsKCQlmb28uYmFyKCk7Cgl9Cn0=