class A{
int x, y, z;
A(){
x = 1;
System.out.printf("Constructor A\n");
}
}
class B extends A{
B(int y, int z){
System.out.printf("Constructor B\n");
this.y = y;
this.z = z;
}
public static void main(String[] args){
B b = new B(2, 3);
System.out.printf("x = %d, y = %d, z = %d\n", b.x, b.y, b.z);
}
}