<a href="https://www.spoj.com/problems/MKTHNUM/">https://www.spoj.com/problems/MKTHNUM/</a> Input Format . Output Format . Constraints . Notice . Example Input . Output . Watch Explanation Video tutorial