# UVa 10868

Physics problem.

## Explanation

Let ${\displaystyle \Delta _{l}}$ be the increase of rope length and ${\displaystyle v}$ the speed when Bond reaches the ground, then by conservation of energy we have ${\displaystyle wgs=k\Delta l^{2}/2+wv^{2}/2}$, where ${\displaystyle g=9.81}$. Notice that ${\displaystyle \Delta l=0}$ if ${\displaystyle s, and ${\displaystyle s-l}$ otherwise.

## Gotchas

• Take care of the case when ${\displaystyle s.

## Input

```350 20 30 75
375 20 30 75
400 20 30 75
425 20 30 75
450 20 30 75
400 20 30 50
400 20 30 80
400 20 30 85
100 20 1 80
0 0 0 0
```

## Output

```Killed by the impact.
James Bond survives.
James Bond survives.
James Bond survives.
Stuck in the air.
Stuck in the air.
James Bond survives.
Killed by the impact.
James Bond survives.
```