/* 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
{
	
    private int x; 

    public Ideone(int x){ 
        this.x = x; 
    } 


public static class B extends Ideone { 
    public int y; 

    public B(int x, int y){ 
        super(x); 
        this.y = y; 
    } 
}


    public static void main(String[] args) { 
        Ideone a = new Ideone(1); 
        B b = new B(1,2); 
        System.out.println(((Ideone)b).x);
    }
}