/****************************/
/* 乱数を使用した積分 */
/* coded by Y.Suganuma */
/****************************/
import java.io.*;
import java.util.*;
class Test {
static void main(String args[]) throws IOException
{
double x, y;
int i1, count = 0, n = 1000000;
Random rn = new Random(123); // 乱数の初期設定
for (i1 = 0; i1 < n; i1++) {
x = rn.nextDouble();
y = rn.nextDouble();
if (y <= x*x)
count++;
}
System.out.println("面積: " + (double)count/n);
}
}