Mathematician Takeover

Problem Name:
Mathematician Takeover
Site:CodeForces
Links:
Tags:
Problem setters: