class A{
public int num =2;
}
class B extends A{
public int num =5;
public void shownum(){
System.out.println(num);
System.out.println(super.num);
}
}
class C extends B{
public int num =7;
public void showallnum(){
super.shownum();
System.out.println(super.num);
}
}
class geeshowall {
public static void main(String[] args) {
A c = new C();
//C c1 = (C)c;
//c1.showallnum();
((C)c).showallnum();
}
}