codeforce question.