The algorithm of behavior in emergency situations