/* 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. */
public class Main
{
public static void main
( String [ ] args
) {
A a1= new A( ) ;
A a2= new A( ) ;
B b1= new B( ) ;
}
}
class A
{
{ System .
out .
println ( "Non-Static block of a instance of Class A" ) ; } public A( )
{
System .
out .
println ( "Constructing object of type A" ) ; }
}
class B
{
{ System .
out .
println ( "Non-Static block of a instance of Class B" ) ; } public B( )
{
System .
out .
println ( "Constructing object of type B" ) ; }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KcHVibGljIGNsYXNzIE1haW4KewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykKICAgIHsKICAgICAgICBBIGExPW5ldyBBKCk7CiAgICAgICAgQSBhMj1uZXcgQSgpOwogICAgICAgIEIgYjE9bmV3IEIoKTsKICAgIH0KfQoKY2xhc3MgQQp7CiAgICB7U3lzdGVtLm91dC5wcmludGxuKCJOb24tU3RhdGljIGJsb2NrIG9mIGEgaW5zdGFuY2Ugb2YgQ2xhc3MgQSIpO30KICAgIHB1YmxpYyBBKCkKICAgIHsKICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIkNvbnN0cnVjdGluZyBvYmplY3Qgb2YgdHlwZSBBIik7CiAgICB9Cn0KCmNsYXNzIEIKewogICAge1N5c3RlbS5vdXQucHJpbnRsbigiTm9uLVN0YXRpYyBibG9jayBvZiBhIGluc3RhbmNlIG9mIENsYXNzIEIiKTt9CiAgICBwdWJsaWMgQigpCiAgICB7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJDb25zdHJ1Y3Rpbmcgb2JqZWN0IG9mIHR5cGUgQiIpOwogICAgfQp9