/* 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
{
{
B a = new B();
B a2 = new B();
a.setA(250);
System.
out.
println(a2.
getA()); }
}
class A
{
protected int a = 20;
}
class B extends A
{
public B(){
a = 10;
}
public void setA(int ta) {
a = ta;
}
public int getA() {
return a;
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCUIgYSA9IG5ldyBCKCk7CgkJQiBhMiA9IG5ldyBCKCk7CgkJU3lzdGVtLm91dC5wcmludGxuKGEuZ2V0QSgpKTsKCQlhLnNldEEoMjUwKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oYS5nZXRBKCkpOwoJCVN5c3RlbS5vdXQucHJpbnRsbihhMi5nZXRBKCkpOwoJfQp9CgpjbGFzcyBBCnsKCXByb3RlY3RlZCBpbnQgYSA9IDIwOwp9CgpjbGFzcyBCIGV4dGVuZHMgQQp7CglwdWJsaWMgQigpewoJCWEgPSAxMDsKCX0KCQoJcHVibGljIHZvaWQgc2V0QShpbnQgdGEpIHsKCQlhID0gdGE7Cgl9CgkKCXB1YmxpYyBpbnQgZ2V0QSgpIHsKCQlyZXR1cm4gYTsJCgl9Cn0=