while not screaming
do
  keep your head up;
  take a deep breath;
  while not safe
  do
    find your safe place;
    for each foot
    do
      take a step forward;
    done
  done
  if not safe
    throw a fit;
    scream;
    feel better;
  else
    break;
done.