Answer the boss!

SPOJ - RPLA