double x = Double.MAX_VALUE;
int i;
for (i = 0; x > 0; i++) {
x/=2;
}
System.out.println(i);
import java.util.Scanner;
public class Program
{
public static void main (String [] args)
{
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
int d = scanner.nextInt();
int min = -1;
if (a >= 0 || b >= 0 || c >= 0 || d >= 0) {
if (a >= 0)
min = a;
if (b >= 0)
min = b;
if (c >= 0)
min = c;
if (d >= 0)
min = d;
if (min >= a && a >= 0)
min = a;
if (min >= b && b >= 0)
min = b;
if (min >= c && c >= 0)
min = c;
if (min >= d && d >= 0)
min = d;
System.out.println(min);
} else
System.out.println("NO");
}
}