/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		BigInteger limit = new BigInteger("10000");
        long l = System.currentTimeMillis();
        for (BigInteger i = BigInteger.ONE; i.compareTo(limit) < 0; i = i.add(BigInteger.ONE))
        {
            BigDecimal temp = new BigDecimal(0);
        }
        long l1 = System.currentTimeMillis();
        BigDecimal temp1;
        for (BigInteger i = BigInteger.ONE; i.compareTo(limit) < 0; i = i.add(BigInteger.ONE))
        {
            temp1 = new BigDecimal(0);
        }
        long l2 = System.currentTimeMillis();
        System.out.println("1st loop time: "+(l1-l)/1000.0);
        System.out.println("2nd loop time: "+(l2-l1)/1000.0);
	}
}