Sameer Jain's submission of Arithmancy | CodeChef