Saruman of Many Colours

Problem Name:
Saruman of Many Colours
Site:Spoj
Links:
Tags:
Problem setters: