This problem is used in private contest:连山中学-Python编程综合练习

auto try obtain new privielges on error