import java.util.*;
import java.lang.*;
class Main
{
static class Foo {
public void foo
(String foo
) { System.
out.
println("Foo says: Hello "+foo
); } }
static class Bar extends Foo {
@Override
public void foo
(Object foo
) { System.
out.
println("Bar says: Hello "+foo
); } }
Foo f = new Bar();
f.foo("world");
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CgpjbGFzcyBNYWluCnsKICAgIAogICAgc3RhdGljIGNsYXNzIEZvbyB7CiAgICAgICAgcHVibGljIHZvaWQgZm9vKFN0cmluZyBmb28pIHsgU3lzdGVtLm91dC5wcmludGxuKCJGb28gc2F5czogSGVsbG8gIitmb28pOyB9CiAgICB9CiAgICAKICAgIHN0YXRpYyBjbGFzcyBCYXIgZXh0ZW5kcyBGb28gewogICAgICAgIEBPdmVycmlkZQogICAgICAgIHB1YmxpYyB2b2lkIGZvbyhTdHJpbmcgZm9vKSB7IHRoaXMuZm9vKChPYmplY3QpZm9vKTsgfQogICAgICAgIHB1YmxpYyB2b2lkIGZvbyhPYmplY3QgZm9vKSB7IFN5c3RlbS5vdXQucHJpbnRsbigiQmFyIHNheXM6IEhlbGxvICIrZm9vKTsgIH0KICAgIH0KICAgIAogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uIHsKICAgICAgICBGb28gZiA9IG5ldyBCYXIoKTsKICAgICAgICBmLmZvbygid29ybGQiKTsKICAgIH0KfQ==