$\ \ \ \ $Satiya August is in charge of souls.
$\ \ \ \ $He finds $n$ souls,and lets them become a circle.He ordered them to play Joseph Games.The souls will count off from the soul $1$.The soul who is numbered $k$ will be taken out,and will not join in the game again.
$\ \ \ \ $Now Satiya August has got the sequence in the Out Ordered,and ask you the smallest $k$.If you cannot give him a correct answer,he will kill you!