/* 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
{
	
	static int count = 0;
	
	Ideone(){
		while(count < 10){
			System.out.println("before:  " + count);
			new Ideone(++count);
			System.out.println("after:  " + count);
		}
	}
	
	Ideone(int x){
		super();
	}
	
	Ideone(String s){
		this(count);
	}
	
	public static void main (String[] args) throws java.lang.Exception
	{
		new Ideone();
		new Ideone("Ideone");
		System.out.println(count);
		System.out.println(count++);
		System.out.println(count);
	}
}