import java.util.Scanner;

class A { // class is a keyword. All keywords are all lower-case
    int a1;
	public void VAS ()
	{
		Scanner src=new Scanner(System.in);
		// int a1; This variable is hiding the variable called a1 above
		System.out.println("Enter value a1"); // always prompt for input so that the user knows what to do
		a1=src.nextInt();
	}
}


class B { // class is a keyword.  All keywords are all lower-case
	int b1;
	public void VBS ()
	{
		Scanner src=new Scanner(System.in);
		// int b1; This variable would hide the variable named b1 above
		System.out.println("Enter value b1"); // always prompt for input so that the user knows what to do
		b1=src.nextInt();
	}
}

class C {
	public void VCS()
	{
		int c1;

		// call the constructors of A and B to create objects
		A g = new A(); // A is a class name VAS is a method name
		B h = new B(); // B is a class name VBX is a method name
		
		// call methods of A and B
		g.VAS();
		h.VBS();

		c1=(g.a1 + h.b1);
		System.out.println(c1);
	}
}

class D
{
	public static void main (String args[]) { // needed opening brace here
		C c= new C();
		c.VCS();
	} // needed closing brace here

}