CodeForces Round 18 div 2, problem A solved.