SUM and REPLACE

Problem Name:
SUM and REPLACE
Site:CodeForces
Links:
Tags:
Problem setters: