now I understand josephus problem that is so nice
but i need some time practice