class f {

	public static void main (String[] args) {
			 boolean c=true;


		 double b2=Math.random();

		int d4=0;

		while(c)
		{	d4++;
			 double a2=Math.random();

		if(a2==b2)
			{c=false;
		}



}
if(c==false)
{System.out.println(d4);}





	}
}