import java.util.Random;
class pro5
{
public static void main(String args[])
{
double a=0, b=0;
int c=0;
double d[] = new double[10];
double f,re;
String r1;
Random r = new Random();
try
{
for(int i=0;i<32000;i++)
{
b=r.nextInt(10);
c=r.nextInt(10);
a=12345/(b/c);
a=Math.log(b);
d[c]=(c/a);
System.out.println("a: "+a);
}
}
catch(ArrayIndexOutOfBoundsException e)
{
System.out.println("Array index out of-bounds");
}
catch(ArithmeticException e)
{
System.out.println("Arithmetic Exception");
}
}
}