public class creature
{
	public static int creatureCt = 0;
	public int id;
	public String name;
	
	public creature(String n)
	  {name = n;
	   creatureCt++;
	   id = creatureCt;
	   }
	   
	 public String toString()
	   {return name + " " +id;
	   }
}

______________________________________________

public class main
{
	public static void main(String a[])
	 {creature one = new creature("Cat");
	  creature two = new creature("Dog");
	  creature three = new creature("Tiger");
	 
	  
	  System.out.println(one + " "+two+" " + three);
   }
	
}