Spoj mixtures fumes


i am getting wrong answer on spoj.
please tell whats wrong with this approach.