Added COJ problem 2536.
Merge.