시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 512 MB 0 0 0 0.000%

## 문제

Valya got bored with social media, so she decided to write a good old handwritten letter to her friend. Valya wrote the letter on a rectangular sheet of paper. The sheet's dimensions are equal to $n$ and $m$ cm. Then she found a rectangular envelope with dimensions equal to $h$ and $w$ cm.

Unfortunately the letter could be too big to be placed into the envelope. So she might need to fold it several times. In one move Valya can fold the letter in half vertically or horizontally.

After folding the letter if necessary, Valya would put it into the envelope. Valya is a perfectionist, so she would always put the letter into the envelope in such way that its sides are parallel to the envelope's sides. The letter can be placed into the envelope if its corresponding dimensions don't exceed the envelope's dimensions. Before placing the letter Valya can rotate it by $90$ degrees. For example, if the letter's dimensions are equal to $10$ and $20$ cm, and the envelope's dimensions are equal to $20$ and $10$ cm, Valya doesn't need to fold the letter, she can rotate it by $90$ degrees to fit it into the envelope.

Valya doesn't want the letter to be crumpled so she wants to fold it the minimal possible number of times. Help her find this number.

## 입력

The first line of the input contains four integers $n$, $m$, $h$ and $w$ denoting the dimensions of the letter and dimensions of the envelope, respectively ($1 \leq n, m, h, w \leq 10^{18}$).

## 출력

Output one number --- the minimal number of folds required, so that Valya could put the letter into the envelope.

## 예제 입력 1

10 20 20 10


## 예제 출력 1

0


## 예제 입력 2

3 3 2 2


## 예제 출력 2

2