Contest problem improved.